[
https://issues.apache.org/jira/browse/PDFBOX-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14166029#comment-14166029
]
John Hewson edited comment on PDFBOX-2408 at 10/10/14 12:09 AM:
----------------------------------------------------------------
{quote}
So the question is, are we allowed to skip those whitespaces?
{quote}
When I run this PDF through Acrobat Preflight, one of the errors is "Syntax
problem: Indirect object has object number not preceded by an EOL marker",
which is triggered by generation 0 objects 1,2,4,6,7,8,9,11,12,13, and 14.
Which means that non-EOL whitespace is not valid, but if we reported it as an
error then we could skip it and continue processing to collect further errors.
was (Author: jahewson):
{quote}
So the question is, are we allowed to skip those whitespaces?
{quote}
When I run this PDF through Acrobat Preflight, one of the errors is "Syntax
problem: Indirect object has object number not preceded by an EOL marker",
which is triggered by generation 0 objects 1,2,4,6,7,8,9,11,12,13, and 14.
Which means that non-EOL whitespace is not valid, but if we've reported it as
an error then we could skip it and continue processing to collect further
errors.
> false negative? 1.2.1 : Body Syntax error, Single space expected ...
> ---------------------------------------------------------------------
>
> Key: PDFBOX-2408
> URL: https://issues.apache.org/jira/browse/PDFBOX-2408
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 2.0.0
> Environment: deb7, java7
> Reporter: Ralf Hauser
> Attachments: KOST_mm_image2pdfa.pdf.pdftron-log.xml, Problems
> (08.10.2014)_003.pdf, mm_image2pdfa.pdf, mm_image_validation_report.xml
>
>
> "mm_image2pdfa.pdf" is not valid, error(s) : Tue Oct 07 10:00:30 CEST 2014
> - 1: 1.2.1 : Body Syntax error, Single space expected [offset=235859;
> key=235859; line=; object=COSObject{14, 0}]
> - 2: 1.2.1 : Body Syntax error, Single space expected [offset=235637;
> key=235637; line=; object=COSObject{13, 0}]
> - 3: 1.2.1 : Body Syntax error, Single space expected [offset=15; key=15;
> line=; object=COSObject{1, 0}]
> - 4: 1.2.1 : Body Syntax error, Single space expected [offset=232167;
> key=232167; line=; object=COSObject{5, 0}]
> - 5: 1.2.1 : Body Syntax error, Single space expected [offset=32399;
> key=32399; line=; object=COSObject{6, 0}]
> - 6: 1.2.1 : Body Syntax error, Single space expected [offset=2688; key=2688;
> line=; object=COSObject{2, 0}]
> - 7: 1.2.1 : Body Syntax error, Single space expected [offset=32169;
> key=32169; line=; object=COSObject{4, 0}]
> - 8: 1.2.1 : Body Syntax error, Single space expected [offset=232040;
> key=232040; line=; object=COSObject{3, 0}]
> - 9: 1.2.1 : Body Syntax error, Single space expected [offset=231334;
> key=231334; line=; object=COSObject{10, 0}]
> - 10: 1.2.1 : Body Syntax error, Single space expected [offset=231143;
> key=231143; line=; object=COSObject{9, 0}]
> - 11: 1.2.1 : Body Syntax error, Single space expected [offset=32617;
> key=32617; line=; object=COSObject{7, 0}]
> - 12: 1.2.1 : Body Syntax error, Single space expected [offset=32708;
> key=32708; line=; object=COSObject{8, 0}]
> - 13: 1.2.1 : Body Syntax error, Single space expected [offset=231640;
> key=231640; line=; object=COSObject{11, 0}]
> - 14: 1.2.1 : Body Syntax error, Single space expected [offset=232223;
> key=232223; line=; object=COSObject{12, 0}]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)