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

Tilman Hausherr commented on PDFBOX-5288:
-----------------------------------------

I got these before you deleted the file using 3.0 trunk:
{noformat}
1.2.2 : Body Syntax error, Expected 'EOL' before the endstream keyword at 
offset 38827 but found '101'
1.2.5 : Body Syntax error, Stream length is invalid 
[dic=COSDictionary{COSName{Length}:COSInt{15};COSName{Filter}:COSName{FlateDecode};};
 defined length=15; actual length=15, starting offset=38811
1.2.2 : Body Syntax error, Expected 'EOL' before the endstream keyword at 
offset 47216 but found '101'
1.2.5 : Body Syntax error, Stream length is invalid 
[dic=COSDictionary{COSName{Length}:COSInt{15};COSName{Filter}:COSName{FlateDecode};};
 defined length=15; actual length=15, starting offset=47200
7.3 : Error on MetaData, Schema is not set in this document : 
http://ns.adobe.com/xap/1.0/sType/ResourceEvent#
{noformat}
The "Stream length is invalid" messages are misleading but it's hard to 
explain, they are related to the previous message. These streams start with LF 
and end with CR. They should end with LF, or with CR LF. A single CR is weird.

About the xmp error: I looked at some conforming PDF files. There the 
"xmlns:..." part is at the lower levels, together after the "rdf:about" part.

It can be fixed by adding {{nsFinder.push(rdfRdf)}} at the earliest possible 
place in DomXmpParser.java. However I don't know if this would be correct.

> Valid PDF/A 1B is rejected
> --------------------------
>
>                 Key: PDFBOX-5288
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5288
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Preflight
>    Affects Versions: 2.0.21, 2.0.24
>         Environment: Java 1.8
>            Reporter: Manuel
>            Priority: Major
>
> When we try to validate a PDF/A 1B file, we get an not valid value with these 
> error messages:
>  * 7.3 - error on metadata, schema is not set in this document : 
> http://ns.adobe.com/xap/1.0/stype/resourceevent#||
>  * 1.2.5 - body syntax error, stream length is invalid [cobj=cosobject\{10, 
> 0}; defined length=15; buffer2=endstream]
>  * 1.2.5 - body syntax error, stream length is invalid [cobj=cosobject\{13, 
> 0}; defined length=15; buffer2=endstream]
> But this file is valid for veraPDF and at online validator 
> ([https://www.pdf-online.com/osa/validate.aspx).]
>  
> We are working with 2.0.21 version and we also tried with 2.0.24, but same 
> result is returned.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to