[ 
https://issues.apache.org/jira/browse/PDFBOX-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258789#comment-13258789
 ] 

Guillaume Bailleul commented on PDFBOX-1279:
--------------------------------------------

The problem is in the initialization of the parser.
No charset is provided to create the javacc SimpleCharStream, so default is 
used.

I propose that patch to fix it. Quite simple at last. It works with utf-8 or 
iso-8859-1...

I am not really sure it is the good way : where to find the good encoding ? 
does it matter ?

@Eric : I really need your opinion on that point
                
> Preflight reports "1.1 : Body Syntax error"
> -------------------------------------------
>
>                 Key: PDFBOX-1279
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1279
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 1.7.0
>         Environment: Win 7 64Bit, jre 1.6.31
>            Reporter: beat weisskopf
>            Priority: Minor
>         Attachments: input_pdf_a_lvl_a_libreoffice_352.pdf, 
> pdfbox_1279_cs.patch
>
>
> Just tried the PDF/A Validation. It fails on the attached pdf with "1.1 : 
> Body Syntax error". Adobe Preflight reports success for both pdf/a level a 
> and pdf/a level b validation. PDF was created with plain LibreOffice 3.5.2 
> (export as pdf, using pdf/a level a).

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