You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Ralf Hauser (JIRA)" <ji...@apache.org> on 2014/10/07 11:49:34 UTC

[jira] [Commented] (PDFBOX-2403) false negative? "Font damaged, The FontFile can't be read"

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

Ralf Hauser commented on PDFBOX-2403:
-------------------------------------

The reason for the damaged font appears to be

java.io.IOException: Number of CharStrings elements is expected.
	at org.apache.pdfbox.preflight.font.util.Type1Parser.readNumberOfCharStrings(Type1Parser.java:376)
	at org.apache.pdfbox.preflight.font.util.Type1Parser.parseCharStringArray(Type1Parser.java:299)
	at org.apache.pdfbox.preflight.font.util.Type1Parser.parseEExecPart(Type1Parser.java:291)
	at org.apache.pdfbox.preflight.font.util.Type1Parser.decodeAndParseEExecPart(Type1Parser.java:197)
	at org.apache.pdfbox.preflight.font.util.Type1Parser.parse(Type1Parser.java:182)
	at org.apache.pdfbox.preflight.font.descriptor.Type1DescriptorHelper.processFontFile1(Type1DescriptorHelper.java:156)
	at org.apache.pdfbox.preflight.font.descriptor.Type1DescriptorHelper.processFontFile(Type1DescriptorHelper.java:125)
	at org.apache.pdfbox.preflight.font.descriptor.FontDescriptorHelper.validate(FontDescriptorHelper.java:96)
	at org.apache.pdfbox.preflight.font.SimpleFontValidator.processFontDescriptorValidation(SimpleFontValidator.java:86)
	at org.apache.pdfbox.preflight.font.SimpleFontValidator.validate(SimpleFontValidator.java:60)
	at org.apache.pdfbox.preflight.process.reflect.FontValidationProcess.validate(FontValidationProcess.java:72)
	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
	at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateFonts(ResourcesValidationProcess.java:106)
	at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:84)
	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
	at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:164)
	at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:83)
	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:52)
	at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:58)
	at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:47)
	at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
	at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88)
	at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)

> 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: pdfa1b.pdf
>
>
> - 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)