Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate in ICC stream dictionary and PDF/A-1b #773

Closed
a20god opened this issue Jun 7, 2017 · 4 comments · Fixed by veraPDF/veraPDF-validation#296
Closed

Alternate in ICC stream dictionary and PDF/A-1b #773

a20god opened this issue Jun 7, 2017 · 4 comments · Fixed by veraPDF/veraPDF-validation#296
Assignees
Labels
bug A product defect that needs fixing P2 Medium priority issues to be scheduled in a future release

Comments

@a20god
Copy link

a20god commented Jun 7, 2017

Dev Effort

1D

Description

verarPDF 1.7.2 claims that this document conforms to ISO-19005-1:2005:
ICC-Alternate-1.pdf
However, the Alternate entry of the output intent's DestOutputProfile (which is not to be ignored in PDF/A-1, in contrast to PDF/A-2)

  • is a device color space which violates 6.2.3.3 (DeviceCMYK vs. RGB output intent)
  • does not have the same number of components as the ICC profile (4 vs. 3), see PDF Reference 1.4 Table 4.16.
@bdoubrov
Copy link
Contributor

bdoubrov commented Jun 8, 2017

Well, strictly speaking this is a violation of the PDF specification. This is a bit similar to the invalid N entry. This has also been discussed already at the Validation Technical Working Group. But I'll double check this again.

@bdoubrov bdoubrov self-assigned this Jun 8, 2017
@a20god
Copy link
Author

a20god commented Jun 8, 2017

The document clearly violates 6.2.3.3 (DeviceCMYK vs. RGB output intent).

@ghost ghost added bug A product defect that needs fixing P2 Medium priority issues to be scheduled in a future release labels Jan 3, 2019
@ghost ghost added this to the v1.14-m4 milestone Jan 3, 2019
@THausherr
Copy link

THausherr commented Jul 25, 2019

Related? Attached PDF validates with VeraPDF (1.14.7-RC) despite a flaw: the /Alternate of the ICC colorspace (at Root/Pages/Kids/[0]/Resources/XObject/Im1/ColorSpace/[1]/Alternate) is /DeviceRGB while the colorspace is a grey one and N=1.
PDFA-Bad-ICC-Alternate.pdf

@bdoubrov
Copy link
Contributor

Yes, indeed the document does not comply to PDF 1.7 specification, and veraPDF does not perform the full PDF validation, just PDF/A.

We catch some of the critical syntax errors and report them to the stderr, but not that one. We'll add this check, as having an alternate with a different number of color components is a quite severe error.

@carlwilson carlwilson removed this from the v1.14-m4 milestone Aug 22, 2019
@ghost ghost added this to the 1.16 milestone Oct 24, 2019
@bdoubrov bdoubrov removed the question label Dec 13, 2019
@bdoubrov bdoubrov assigned BezrukovM and unassigned bdoubrov Dec 20, 2019
@carlwilson carlwilson removed this from the 1.20 milestone Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A product defect that needs fixing P2 Medium priority issues to be scheduled in a future release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants