[ 
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

        

Reply via email to