[
https://issues.apache.org/jira/browse/PDFBOX-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antoine Ribes updated PDFBOX-3136:
----------------------------------
Attachment: test_little-A1a.pdf
> False negative on PDF/A-1A with wrongly given causes " Invalid graphics
> object, DestOutputProfile isn't a valid ICCProfile: Invalid ICC Profile Data"
> and "Invalid Color space, The operator "rg" can't be used with CMYK Profile"
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-3136
> URL: https://issues.apache.org/jira/browse/PDFBOX-3136
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Reporter: Antoine Ribes
> Attachments: test_little-A1a.pdf
>
>
> Using the code of the CookBook for PDF/A validation (given for 1.8.10) :
> - with the test_little-A1a.pdf file (Adobe preflight (and pdfbox:1.8.10)
> tells me it's a valid PDF/A-1A)
> - and only replacing the code "parser.parse()" with
> "parser.parse(Format.PDF_A1A)",
> result.isValid() is false with version 2.0.0-RC2. Displayed results errors
> are :
> - 2.1.4 - Invalid graphics object, DestOutputProfile isn't a valid
> ICCProfile: Invalid ICC Profile Data
> - 2.1.4 - Invalid graphics object, DestOutputProfile isn't a valid
> ICCProfile. Caused by : Invalid ICC Profile Data
> - 2.4.1 - Invalid Color space, The operator "rg" can't be used with CMYK
> Profile
> Some log is displayed :
> WARN [org.apache.pdfbox.filter.FlateFilter] - FlateFilter: premature end of
> stream due to a DataFormatException
> DEBUG [org.apache.pdfbox.io.ScratchFileBuffer] - ScratchFileBuffer not closed!
> WARN [org.apache.pdfbox.filter.FlateFilter] - FlateFilter: premature end of
> stream due to a DataFormatException
> Note : Running same code with the pdfbox and preflight version 2.0.0-RC1 on
> the same file, I get the exception :
> org.apache.pdfbox.preflight.exception.ValidationException: Unable to parse
> the ICC Profile.
> at
> org.apache.pdfbox.preflight.process.CatalogValidationProcess.validateICCProfile(CatalogValidationProcess.java:383)
> at
> org.apache.pdfbox.preflight.process.CatalogValidationProcess.validateOutputIntent(CatalogValidationProcess.java:285)
> at
> org.apache.pdfbox.preflight.process.CatalogValidationProcess.validate(CatalogValidationProcess.java:148)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
> at
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:122)
> at
> org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:163)
> [...]
> Caused by: java.io.IOException: java.util.zip.DataFormatException: incorrect
> data check
> at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:83)
> at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69)
> at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:163)
> at
> org.apache.pdfbox.preflight.process.CatalogValidationProcess.validateICCProfile(CatalogValidationProcess.java:360)
> ... 29 more
> Caused by: java.util.zip.DataFormatException: incorrect data check
> at java.util.zip.Inflater.inflateBytes(Native Method)
> And a similar result as with 2.0.0-RC2 is obtained with 1.8.8.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]