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 2011/12/21 12:53:30 UTC

[jira] [Created] (PDFBOX-1195) Font processing problem

Font processing problem
-----------------------

                 Key: PDFBOX-1195
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1195
             Project: PDFBox
          Issue Type: Bug
          Components: Preflight
    Affects Versions: 1.7.0
            Reporter: William Fausser
             Fix For: 1.7.0


Simple PDF/A fails on "Invalid Font Definition", passes on commercial validators.

--
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-1195) Font Validation Problem

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

William Fausser commented on PDFBOX-1195:
-----------------------------------------

Hi Eric,

I don't think this type has a Length1 since it's subtype is CIDFontType2, so it would have to be validated differently.

re: Subtype name (Required) The type of CIDFont; CIDFontType0 or CIDFontType2.

A CIDFont dictionary is a PDF object that contains information about a
CIDFont program. Although its Type value is Font, a CIDFont is not actually a
font. It does not have an Encoding entry, it cannot be listed in the Font subdictionary
of a resource dictionary, and it cannot be used as the operand of the Tf
operator. It is used only as a descendant of a Type 0 font. The CMap in the Type 0
font is what defines the encoding that maps character codes to CIDs in the
CIDFont. Table 5.13 lists the entries in a CIDFont dictionary.
TABLE 5.13 Entries in a CIDFont dictionary
KEY TYPE

Happy Holidays,
William
                
> Font Validation Problem
> -----------------------
>
>                 Key: PDFBOX-1195
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1195
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: this-is-a-test-from-pdfDocs1.pdf
>
>
> Simple PDF/A fails on "Invalid Font Definition", passes on commercial validators.

--
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-1195) Font Validation Problem

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

Eric Leleu commented on PDFBOX-1195:
------------------------------------

Hi,

I looked quickly at this issue.

My first impression is that the PDF isn't a PDF/A because some entries of the Font Stream are missing ("Length1" for exemple).
If I bypass this control, I have others problems about this font (WMode inconsistant in the CMap and Missing Glyph)

Monday, I should have more time to work on this issue. 

Regards,
Eric

                
> Font Validation Problem
> -----------------------
>
>                 Key: PDFBOX-1195
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1195
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: this-is-a-test-from-pdfDocs1.pdf
>
>
> Simple PDF/A fails on "Invalid Font Definition", passes on commercial validators.

--
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-1195) Font processing problem

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

William Fausser updated PDFBOX-1195:
------------------------------------

    Attachment: this-is-a-test-from-pdfDocs1.pdf
    
> Font processing problem
> -----------------------
>
>                 Key: PDFBOX-1195
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1195
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: this-is-a-test-from-pdfDocs1.pdf
>
>
> Simple PDF/A fails on "Invalid Font Definition", passes on commercial validators.

--
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-1195) Font Validation Problem

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

Eric Leleu resolved PDFBOX-1195.
--------------------------------

    Resolution: Fixed

This issue is fixed.
PDF file is now considered as PDF/A by preflight.

Here the list of changes :
- Remove useless control in the CIDFontType2 validation. (length1 entry)
- Check the WMode value to know if the WMode is missing from the Dictionary, if it is missing use 0 as the default WMode
- manage the CIDToGID map stream.
                
> Font Validation Problem
> -----------------------
>
>                 Key: PDFBOX-1195
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1195
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: this-is-a-test-from-pdfDocs1.pdf
>
>
> Simple PDF/A fails on "Invalid Font Definition", passes on commercial validators.

--
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-1195) Font Validation Problem

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

William Fausser updated PDFBOX-1195:
------------------------------------

    Summary: Font Validation Problem  (was: Font processing problem)
    
> Font Validation Problem
> -----------------------
>
>                 Key: PDFBOX-1195
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1195
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: this-is-a-test-from-pdfDocs1.pdf
>
>
> Simple PDF/A fails on "Invalid Font Definition", passes on commercial validators.

--
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-1195) Font Validation Problem

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

William Fausser commented on PDFBOX-1195:
-----------------------------------------

Hi Eric,

This is a strange font.  Calibri (Embedded Subset) of Type: TrueType (CID) with Custom Encoding. 

 I had also bypassed the "Lenght1" control getting the WMode error return.

Happy Holidays,
William
                
> Font Validation Problem
> -----------------------
>
>                 Key: PDFBOX-1195
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1195
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: this-is-a-test-from-pdfDocs1.pdf
>
>
> Simple PDF/A fails on "Invalid Font Definition", passes on commercial validators.

--
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-1195) Font Validation Problem

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

Eric Leleu reassigned PDFBOX-1195:
----------------------------------

    Assignee: Eric Leleu
    
> Font Validation Problem
> -----------------------
>
>                 Key: PDFBOX-1195
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1195
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: this-is-a-test-from-pdfDocs1.pdf
>
>
> Simple PDF/A fails on "Invalid Font Definition", passes on commercial validators.

--
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