[ https://issues.apache.org/jira/browse/PDFBOX-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252287#comment-13252287 ]
beat weisskopf commented on PDFBOX-1279: ---------------------------------------- Hi Bill Tried it on my linux box, there it works. Also got it to work on my windows box with specifying the encoding: C:\tmp>java -jar -Dfile.encoding=iso-8859-1 preflight-1.7.0-20120410.222958-102-jar-with-dependencies.jar input_pdf_a_lvl_a_libreoffice_352.pdf log4j:WARN No appenders could be found for logger (org.apache.pdfbox.util.PDFStreamEngine). log4j:WARN Please initialize the log4j system properly. The file input_pdf_a_lvl_a_libreoffice_352.pdf is a valid PDF/A-1b file C:\tmp>java -jar -Dfile.encoding=utf-8 preflight-1.7.0-20120410.222958-102-jar-with-dependencies.jar input_pdf_a_lvl_a_libreoffice_352.pdf log4j:WARN No appenders could be found for logger (org.apache.pdfbox.util.PDFStreamEngine). log4j:WARN Please initialize the log4j system properly. The file input_pdf_a_lvl_a_libreoffice_352.pdf is a valid PDF/A-1b file C:\tmp>java -jar -Dfile.encoding=cp1252 preflight-1.7.0-20120410.222958-102-jar-with-dependencies.jar input_pdf_a_lvl_a_libreoffice_352.pdf log4j:WARN No appenders could be found for logger (org.apache.pdfbox.util.PDFStreamEngine). log4j:WARN Please initialize the log4j system properly. The fileinput_pdf_a_lvl_a_libreoffice_352.pdf is not valid, error(s) : 1.1 : Body Syntax error Had a quick search over the code, there are possible issues in StreamValidationHelper and TrailerValidationHelper (new String(..) without encoding, getBytes(..) without encoding). But not sure what to specify there... thanks, beat > 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 > > > 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