You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "William Fausser (Created) (JIRA)" <ji...@apache.org> on 2012/03/15 19:23:38 UTC

[jira] [Created] (PDFBOX-1259) 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A

3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A
---------------------------------------------------------------------------------------------------

                 Key: PDFBOX-1259
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1259
             Project: PDFBox
          Issue Type: Bug
          Components: Preflight
    Affects Versions: 1.7.0
         Environment: Linux
            Reporter: William Fausser
         Attachments: testXPDFA.pdf

testXPDFA.pdf is not valid, error(s):
3.1.6: Invalid Font definition, Width of the character "2" in the font program "EJCJIO+FrankRuehlCLM-Medium"is inconsistent with the width in the PDF dictionary.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PDFBOX-1259) 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A

Posted by "Eric Leleu (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Leleu resolved PDFBOX-1259.
--------------------------------

    Resolution: Fixed
    
> 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1259
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1259
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>         Attachments: testXPDFA.pdf
>
>
> testXPDFA.pdf is not valid, error(s):
> 3.1.6: Invalid Font definition, Width of the character "2" in the font program "EJCJIO+FrankRuehlCLM-Medium"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PDFBOX-1259) 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A

Posted by "Eric Leleu (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Leleu reassigned PDFBOX-1259:
----------------------------------

    Assignee: Eric Leleu
    
> 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1259
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1259
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>         Attachments: testXPDFA.pdf
>
>
> testXPDFA.pdf is not valid, error(s):
> 3.1.6: Invalid Font definition, Width of the character "2" in the font program "EJCJIO+FrankRuehlCLM-Medium"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PDFBOX-1259) 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A

Posted by "Eric Leleu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251935#comment-13251935 ] 

Eric Leleu commented on PDFBOX-1259:
------------------------------------

Hi,

This output seems to be the right one.
The font "EJCJIO+FrankRuehlCLM-Medium" is a Type1 font.

As you can see here after, the first character is the CID 2. It has a width of 481 in the Font dictionary :
34 0 obj <</BaseFont/EJCJIO+FrankRuehlCLM-Medium/Encoding 32 0 R/FirstChar 2/FontDescriptor 33 0 R/LastChar 65/Subtype/Type1/ToUnicode 19 0 R/ ... /Widths[481 434 0 0 434...442]>>

In the Encoding dictionary, the character 2 is linked with the Character name "afii57664" (a kind of 'N' the Hebrew letter Alef).
32 0 obj^M<</Differences[2 /afii57664/uniFB3C/afii57797/... /afii57802] /Type/Encoding>> 

I extracted the font program from the PDF ("/FontFile3 18 0 R " in the "/FontDescriptor 33 0 R") and I read it with FontForge. According to FontForge the width of the character 2 is 577.
And the character 2 has the same name ( "afii57664" )

If I add some debug traces in my code before the width validation, I have :
CID : 2 pdfW : 481.0 fontW : 577


This difference is too huge to flag this pdf as a PDF/A-1b


BR,
Eric
                
> 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1259
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1259
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>         Attachments: testXPDFA.pdf
>
>
> testXPDFA.pdf is not valid, error(s):
> 3.1.6: Invalid Font definition, Width of the character "2" in the font program "EJCJIO+FrankRuehlCLM-Medium"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1259) 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A

Posted by "William Fausser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Fausser updated PDFBOX-1259:
------------------------------------

    Attachment: testXPDFA.pdf
    
> 3.1.6 Invalid Font Definition - not your usual pdf - passes Adobe and pdfaPilot validation as PDF/A
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-1259
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1259
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>         Environment: Linux
>            Reporter: William Fausser
>         Attachments: testXPDFA.pdf
>
>
> testXPDFA.pdf is not valid, error(s):
> 3.1.6: Invalid Font definition, Width of the character "2" in the font program "EJCJIO+FrankRuehlCLM-Medium"is inconsistent with the width in the PDF dictionary.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira