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/21 17:09:40 UTC

[jira] [Created] (PDFBOX-1265) Invalid Font Definition

Invalid Font Definition
-----------------------

                 Key: PDFBOX-1265
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
             Project: PDFBox
          Issue Type: Bug
          Components: Preflight
         Environment: Linux
            Reporter: William Fausser
             Fix For: 1.7.0
         Attachments: MegaZine.pdf.pdf

MegaZine.pdf.pdf is not valid, error(s):
3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

Eric Leleu updated PDFBOX-1265:
-------------------------------

    Attachment: patch-pdfbox490.txt

Fix UnsignedShort read
                
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt, patch-pdfbox490.txt
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

Eric Leleu commented on PDFBOX-1265:
------------------------------------

Hi,

In attachment you will find a patch that fixes this issue.
Be careful, a recent commit on the FontBox project makes unstable the validation of PDF with TrueType or CIDFontType2 font.

This issue will remain open until all my test set succeeds with TrueType font program.

BR,
Eric

                
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

Eric Leleu updated PDFBOX-1265:
-------------------------------

    Attachment: test1_4.pdf

OutOfMemoryException when the prefligth module check the pdf
                
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt, patch-pdfbox490.txt, test1_4.pdf
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

William Fausser commented on PDFBOX-1265:
-----------------------------------------

Hi Eric,

Attached file: PoolCompPDFA also gives similar error:
PoolCompPDFA.pdf is not valid, error(s) :
3.1.6 : Invalid Font definition, Width of the character "111" in the font program "IGNPVN+CMR17"is inconsistent with the width in the PDF dictionary.

BR,
Bill
                
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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] [Issue Comment Edited] (PDFBOX-1265) Invalid Font Definition

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

Eric Leleu edited comment on PDFBOX-1265 at 4/11/12 8:50 PM:
-------------------------------------------------------------

Hi Andreas,

Unfortunately yes, some short values are read as SignedShort  instead of UnsignedShort.
(That throws ArrayOutOfBoundException)

In the GlyphSimpleDescript, there are two others problem about the pointCount variable and the flags array initialization.
In attachment, you can find a patch[1] but the fix for the "pointCount" and "flags array initialization" need to be checked...

I used the following site as TrueType font specification :
https://developer.apple.com/fonts/TTRefMan/RM06/Chap6.html#Types

An OutOfMemoryException remains in the "test1_4.pdf" file.

BR,
Eric

[1] patch-pdfbox490.txt

                
      was (Author: leleueri):
    Hi Andreas,

Unfortunately yes, some short values are read as SignedShort  instead of UnsignedShort.
(That throws ArrayOutOfBoundException)

In the GlyphSimpleDescript, there are two others problem about the pointCount variable and the flags array initialization.
In attachment, you can find a patch[1] but the fix for the "pointCount" and "flags array initialization" need to be checked...

I used the following site as TrueType font specification :
https://developer.apple.com/fonts/TTRefMan/RM06/Chap6.html#Types

An OutOfMemoryException remains in the "test1_4.pdf" file.

BR,
Eric

                  
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt, patch-pdfbox490.txt
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

William Fausser updated PDFBOX-1265:
------------------------------------

    Attachment: PoolCompPDFA.pdf
    
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

William Fausser updated PDFBOX-1265:
------------------------------------

    Attachment: MegaZine.pdf.pdf
    
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

Eric Leleu reassigned PDFBOX-1265:
----------------------------------

    Assignee: Eric Leleu
    
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

Posted by "Andreas Lehmkühler (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254310#comment-13254310 ] 

Andreas Lehmkühler commented on PDFBOX-1265:
--------------------------------------------

I fixed the OOM-exception in revision 1326311 including Erics patch. Thanks for the pointer!
                
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt, patch-pdfbox490.txt, test1_4.pdf
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

Eric Leleu commented on PDFBOX-1265:
------------------------------------

Hi Andreas,

Unfortunately yes, some short values are read as SignedShort  instead of UnsignedShort.
(That throws ArrayOutOfBoundException)

In the GlyphSimpleDescript, there are two others problem about the pointCount variable and the flags array initialization.
In attachment, you can find a patch[1] but the fix for the "pointCount" and "flags array initialization" need to be checked...

I used the following site as TrueType font specification :
https://developer.apple.com/fonts/TTRefMan/RM06/Chap6.html#Types

An OutOfMemoryException remains in the "test1_4.pdf" file.

BR,
Eric

                
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

Eric Leleu updated PDFBOX-1265:
-------------------------------

    Attachment: patch-pdfbox1265.txt
    
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

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

Eric Leleu resolved PDFBOX-1265.
--------------------------------

    Resolution: Fixed

Thank you Andreas.

                
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt, patch-pdfbox490.txt, test1_4.pdf
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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-1265) Invalid Font Definition

Posted by "Andreas Lehmkühler (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251320#comment-13251320 ] 

Andreas Lehmkühler commented on PDFBOX-1265:
--------------------------------------------

@Eric
I guess you are talking about my fontbox changes, aren't you? Can you be more specific, so that I can fix it if necessary
                
> Invalid Font Definition
> -----------------------
>
>                 Key: PDFBOX-1265
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1265
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>         Environment: Linux
>            Reporter: William Fausser
>            Assignee: Eric Leleu
>             Fix For: 1.7.0
>
>         Attachments: MegaZine.pdf.pdf, PoolCompPDFA.pdf, patch-pdfbox1265.txt
>
>
> MegaZine.pdf.pdf is not valid, error(s):
> 3.1.6 : Invalid Font definition, Width of the character "129" in the font program "PPACDG+ArialMT"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