[ 
https://issues.apache.org/jira/browse/PDFBOX-2403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162212#comment-14162212
 ] 

Tilman Hausherr commented on PDFBOX-2403:
-----------------------------------------

The width differences are related to the last error in PDFBOX-2299. The "Font 
damaged, The FontFile can't be read" errors are related to two exceptions in 
Type1DescriptorHelper.processFontFile1 that are not seen, as you mention too:

1) java.io.IOException: Number of CharStrings elements was expected but we 
received /Helvetica-Bold
2) java.io.IOException: Invalid encoding : Expected CID value before "/space" 
label

I can't tell myself whether your file is malformed or this is an error in 
preflight. However rendering your file also makes trouble: 

org.apache.pdfbox.pdmodel.font.PDType0Font <init>
WARNUNG: Nonsymbolic Type 0 font: CIIMNL+MS-Gothic-Identity-H
org.apache.pdfbox.pdmodel.font.PDType0Font <init>
WARNUNG: Nonsymbolic Type 0 font: SURPPV+HeiseiMaruGoStd-W8-Identity-H
org.apache.pdfbox.pdmodel.font.PDType0Font <init>
WARNUNG: Nonsymbolic Type 0 font: OIZFRF+KozMinProVI-Regular-Identity-H
org.apache.pdfbox.pdmodel.font.PDType0Font <init>
WARNUNG: Nonsymbolic Type 0 font: RRATCX+MathematicalPiLTStd-Identity-H
org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNUNG: No Unicode mapping for skyline (67) in font Carta
org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNUNG: No Unicode mapping for skiing (97) in font Carta
org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNUNG: No Unicode mapping for starincircle (114) in font Carta
org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNUNG: No Unicode mapping for city (116) in font Carta
org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNUNG: No Unicode mapping for character code 33 in font GIOUWT+Wingdings3

[~lehmi]: I agree, however my understanding is that the preflight parser 
shouldn't be lenient, while the fontbox Type1Parser is (and should be).


> false negative? "Font damaged, The FontFile can't be read"
> ----------------------------------------------------------
>
>                 Key: PDFBOX-2403
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2403
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>         Environment: deb7, java 7
>            Reporter: Ralf Hauser
>         Attachments: patchBetterErrorMessages.txt, patchPDFBOX-2403.txt, 
> patchPDFBOX-2403Type1.txt, pdfA_Validation_Report.eml, pdfa1b.pdf, 
> validation_report.xml
>
>
> - 1: 3.2.1 : Font damaged, The FontFile can't be read
>  - 2: 3.2.1 : Font damaged, The FontFile can't be read
>  - 3: 3.1.6 : Invalid Font definition, Width of the character "48" in the 
> font program "SURPPV+HeiseiMaruGoStd-W8-Identity-H" is inconsistent with the 
> width in the PDF dictionary.
>  - 4: 3.1.6 : Invalid Font definition, Width of the character "36" in the 
> font program "OIZFRF+KozMinProVI-Regular-Identity-H" is inconsistent with the 
> width in the PDF dictionary.
>  - 5: 3.3.1 : Glyph error, The character "74" in the font program 
> "OIZFRF+KozMinProVI-Regular-Identity-H" is missing from the Charater Encoding.
>  - 6: 3.1.6 : Invalid Font definition, Width of the character "80" in the 
> font program "OIZFRF+KozMinProVI-Regular-Identity-H" is inconsistent with the 
> width in the PDF dictionary.
>  - 7: 3.1.6 : Invalid Font definition, Width of the character "420" in the 
> font program "RRATCX+MathematicalPiLTStd-Identity-H" is inconsistent with the 
> width in the PDF dictionary.
> possibly related to 
> https://issues.apache.org/jira/browse/PDFBOX-2299?focusedCommentId=14160528&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14160528
>  ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to