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

Tilman Hausherr commented on PDFBOX-3136:
-----------------------------------------

I also tested with the current veraPDF software (v 0.7.45). It also fails, 
although for an apparent different reason, but still related to output
 intents:
{quote}
DeviceRGB may be used only if the file has a PDF/A-1 OutputIntent that uses an 
RGB colour space
{quote}

As a paying Adobe Acrobat DC customer, I suggest you contact their support and 
ask why the file fails with three different validators and succeeds with theirs.

> 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
>    Affects Versions: 2.0.0
>            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: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to