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 (JIRA)" <ji...@apache.org> on 2012/08/02 13:11:02 UTC

[jira] [Created] (PDFBOX-1373) Body Syntax Error : Possible Encoding problem

William Fausser created PDFBOX-1373:
---------------------------------------

             Summary: Body Syntax Error : Possible Encoding problem
                 Key: PDFBOX-1373
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1373
             Project: PDFBox
          Issue Type: Bug
          Components: Preflight
    Affects Versions: 1.7.1, 1.8.0
         Environment: LInux
            Reporter: William Fausser
             Fix For: 1.8.0, 1.7.1


On the second/third lines, I'm getting the following error on a Valid PDF/A:
./vtb_live.5.11.bk.10470.1403680.0_A.pdf :: The file./vtb_live.5.11.bk.10470.1403680.0_A.pdf is not valid, error(s) :
1.2 : Body Syntax error

Is this a left over from issue 1279?



--
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-1373) Body Syntax Error : Possible Encoding problem

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

Eric Leleu resolved PDFBOX-1373.
--------------------------------

    Resolution: Fixed

Syntax validation is done by the Preflight parser.
The validation of the attached file succeed.
                
> Body Syntax Error : Possible Encoding problem
> ---------------------------------------------
>
>                 Key: PDFBOX-1373
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1373
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.1, 1.8.0
>         Environment: LInux
>            Reporter: William Fausser
>             Fix For: 1.8.0
>
>         Attachments: patch-1373-pdfbox.txt, patch-1373-preflight.txt, vtb_live.5.11.bk.10470.1403680.0_A.pdf
>
>
> On the second/third lines, I'm getting the following error on a Valid PDF/A:
> ./vtb_live.5.11.bk.10470.1403680.0_A.pdf :: The file./vtb_live.5.11.bk.10470.1403680.0_A.pdf is not valid, error(s) :
> 1.2 : Body Syntax error
> Is this a left over from issue 1279?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PDFBOX-1373) Body Syntax Error : Possible Encoding problem

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

Eric Leleu commented on PDFBOX-1373:
------------------------------------

Hi,

This issue isn't linked with the PDFBOX-1279.
The problem comes from two objects stored with the same identifier (5 0 obj).
The first one is well formatted and is referenced in the XRef table, the second is an invalid dictionary (XObject - Image) that isn't used in the PDF because it is missing from the XRef table.

Currently, I don't know which behaviour we should have :
- reject the file because it contains an invalid dictionary (In this case, the file structure is invalid according to my point of view) 
- manage only the object that is referenced in the XRef table. (In this case, prefligth should give up the JavaCC syntactical validation in order to delegate this step to the Preflight Parser directly)

I think that the second option is probably the best one because the XRef table is the reference table for each object. Of course this is the hardest solution too...

What is your point of view?

BR,
Eric

 
                
> Body Syntax Error : Possible Encoding problem
> ---------------------------------------------
>
>                 Key: PDFBOX-1373
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1373
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.1, 1.8.0
>         Environment: LInux
>            Reporter: William Fausser
>             Fix For: 1.7.1, 1.8.0
>
>         Attachments: vtb_live.5.11.bk.10470.1403680.0_A.pdf
>
>
> On the second/third lines, I'm getting the following error on a Valid PDF/A:
> ./vtb_live.5.11.bk.10470.1403680.0_A.pdf :: The file./vtb_live.5.11.bk.10470.1403680.0_A.pdf is not valid, error(s) :
> 1.2 : Body Syntax error
> Is this a left over from issue 1279?

--
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-1373) Body Syntax Error : Possible Encoding problem

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

William Fausser updated PDFBOX-1373:
------------------------------------

    Attachment: vtb_live.5.11.bk.10470.1403680.0_A.pdf
    
> Body Syntax Error : Possible Encoding problem
> ---------------------------------------------
>
>                 Key: PDFBOX-1373
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1373
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.1, 1.8.0
>         Environment: LInux
>            Reporter: William Fausser
>             Fix For: 1.7.1, 1.8.0
>
>         Attachments: vtb_live.5.11.bk.10470.1403680.0_A.pdf
>
>
> On the second/third lines, I'm getting the following error on a Valid PDF/A:
> ./vtb_live.5.11.bk.10470.1403680.0_A.pdf :: The file./vtb_live.5.11.bk.10470.1403680.0_A.pdf is not valid, error(s) :
> 1.2 : Body Syntax error
> Is this a left over from issue 1279?

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