Am 08.08.2015 um 00:04 schrieb Tilman Hausherr:
I've fixed the bug in PDFSplit, sumitted an issue in asciidoctor
https://github.com/asciidoctor/asciidoctor-pdf/issues/303
been able to split your file, and found that the bug in preflight is e.g. on page 3. I've also found the cause and will submit a fix tomorrow.

If you just want to check the file, use the 2.0 version which has more PDF/A coverage (and doesn't have that bug): https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/
Correct link is
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/preflight-app/2.0.0-SNAPSHOT/

anyway, I've fixed the bug in
https://issues.apache.org/jira/browse/PDFBOX-2925

you can get a new snapshot version within a few hours here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/preflight-app/1.8.11-SNAPSHOT/

enjoy!

Tilman

PS: next time, use the user mailing list. The dev mailing list is for devs.


Tilman

Am 07.08.2015 um 21:41 schrieb Tilman Hausherr:
Hi,

It is always a preflight bug. Preflight should be able to survive crappy PDFs (and I'm not saying that yours is).

Please open an issue in JIIRA.
https://issues.apache.org/jira/secure/CreateIssue!default.jspa

If possible, create a one page PDF that has the problem. (which, btw, occurs only in 1.8, not on 2.0. However I'm unable to PDFSplit your file in 2.0).

(Your file didn't make it do the mailing list because these are deleted automatically, but your post landed in moderation so I have it :-) )

Tilman

Am 07.08.2015 um 21:16 schrieb Abel Salgado Romero:
Hi,

I'm testing prawn generated PDFs (https://github.com/prawnpdf/prawn) and I have found that when trying to validate them with PreflightParser, I get an unchecked exception instead of an expected org.apache.pdfbox.preflight.exception.ValidationException.

Could it be a problem with the PDF or is it an issue in PDFBox-preflight?

I attach the PDF (example-manual.pdf) and here is the stacktrace:
Exception in thread "main" java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at org.apache.pdfbox.util.PDFStreamEngine.getColorSpaces(PDFStreamEngine.java:579) at org.apache.pdfbox.util.operator.SetNonStrokingColorSpace.process(SetNonStrokingColorSpace.java:50) at org.apache.pdfbox.preflight.content.ContentStreamWrapper.processOperator(ContentStreamWrapper.java:162) at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268) at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:244) at org.apache.pdfbox.preflight.content.ContentStreamWrapper.validXObjContentStream(ContentStreamWrapper.java:100) at org.apache.pdfbox.preflight.xobject.XObjFormValidator.validateXObjectContent(XObjFormValidator.java:113) at org.apache.pdfbox.preflight.xobject.XObjFormValidator.validate(XObjFormValidator.java:76) at org.apache.pdfbox.preflight.process.reflect.GraphicObjectPageValidationProcess.validate(GraphicObjectPageValidationProcess.java:77) at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:81) at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:54) at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateXObjects(ResourcesValidationProcess.java:191) at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:78) at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:81) at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:54) at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:163) at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:82) at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:81) at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:54) at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:58) at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:47) at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:81) at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:96) at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)


Thanks,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to