pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Ribes (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-3136) 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"
Date Thu, 03 Dec 2015 19:34:10 GMT

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

Antoine Ribes commented on PDFBOX-3136:
---------------------------------------

I use a trial of acrobat, hoping it could be used as a distinct reference for PDF/A validation.
I still posted a request with the question...

I also generated another simple PDF/A-1a file with LibreOffice 5.0.3 and it is correct (validates
with acrobat, www.pdf-tools.com and pdfbox preflight).
Since the 5.0.3 version of LO gives a warning message, like "transparency is forbidden in
PDF/A-1a specifications. So it is removed", that I did not have when generating the file with
the 4.2 version, I'd say that was the problem and conclude you're definitely correct.

Thanks a lot.

> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message