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

John Hewson edited comment on PDFBOX-2442 at 11/2/14 7:23 PM:
--------------------------------------------------------------

-So I took a look at this file and it isn't a font bug. The width for character 
60 in the FontDescriptor is 0 and in the embedded font it is 633. So the file 
really does contain this.-

-What I don't know is what PDF/A actually requires of the font in order to be 
valid, it's obviously not the same as what PDFBox's Preflight is doing, but 
without a copy of the PDF/A spec, I can't say. Does anybody know?-


was (Author: jahewson):
So I took a look at this file and it isn't a font bug. The width for character 
60 in the FontDescriptor is 0 and in the embedded font it is 633. So the file 
really does contain this.

What I don't know is what PDF/A actually requires of the font in order to be 
valid, it's obviously not the same as what PDFBox's Preflight is doing, but 
without a copy of the PDF/A spec, I can't say. Does anybody know?

> false negative? 3.1.6 : Invalid Font definition, Width (633.0) of the 
> character "60" in the font program "BNGLNN+LucidaMath-Symbol" is inconsistent 
> with the width (0.0) in the PDF dictionary.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2442
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2442
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.0
>         Environment: java7 deb7
>            Reporter: Ralf Hauser
>            Assignee: John Hewson
>         Attachments: adobe7pie.pdf
>
>
> org.apache.pdfbox.preflight.font.util.GlyphException: Width (633.0) of the 
> character "60" in the font program "BNGLNN+LucidaMath-Symbol" is inconsistent 
> with the width (0.0) in the PDF dictionary.
>       at 
> org.apache.pdfbox.preflight.font.container.FontContainer.checkWidthsConsistency(FontContainer.java:181)
>       at 
> org.apache.pdfbox.preflight.font.container.FontContainer.checkGlyphWidth(FontContainer.java:130)
>       at 
> org.apache.pdfbox.preflight.content.PreflightContentStream.validText(PreflightContentStream.java:342)
>       at 
> org.apache.pdfbox.preflight.content.PreflightContentStream.validStringArray(PreflightContentStream.java:276)
>       at 
> org.apache.pdfbox.preflight.content.PreflightContentStream.validStringArray(PreflightContentStream.java:272)
>       at 
> org.apache.pdfbox.preflight.content.PreflightContentStream.checkShowTextOperators(PreflightContentStream.java:190)
>       at 
> org.apache.pdfbox.preflight.content.PreflightContentStream.processOperator(PreflightContentStream.java:155)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processSubStream(PDFStreamEngine.java:226)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processSubStream(PDFStreamEngine.java:196)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:152)
>       at 
> org.apache.pdfbox.preflight.content.PreflightContentStream.validPageContentStream(PreflightContentStream.java:76)
>       at 
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateContent(SinglePageValidationProcess.java:184)
>       at 
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:87)
>       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:56)
>       at 
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:45)
>       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)



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

Reply via email to