[ https://issues.apache.org/jira/browse/PDFBOX-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180446#comment-13180446 ]
William Fausser commented on PDFBOX-1200: ----------------------------------------- Additional info: the ghostscript scructure that creates the "adhoc" colorspace that is then turne into a stream object is: /* * Even though Ghostscript includes icclib, icclib is unusable here, * because it requires random access to the output stream. * Instead, we construct the ICC profile by hand. */ /* Header */ byte header[128]; static const byte header_data[] = { 0, 0, 0, 0, /* profile size **VARIABLE** */ 0, 0, 0, 0, /* CMM type signature */ 0x02, 0x20, 0, 0, /* profile version number */ 's', 'c', 'n', 'r', /* profile class signature */ 0, 0, 0, 0, /* data color space **VARIABLE** */ 'X', 'Y', 'Z', ' ', /* connection color space */ 2002 / 256, 2002 % 256, 0, 1, 0, 1, /* date (1/1/2002) */ 0, 0, 0, 0, 0, 0, /* time */ 'a', 'c', 's', 'p', /* profile file signature */ 0, 0, 0, 0, /* primary platform signature */ 0, 0, 0, 3, /* profile flags (embedded use only) */ 0, 0, 0, 0, 0, 0, 0, 0, /* device manufacturer */ 0, 0, 0, 0, /* device model */ 0, 0, 0, 0, 0, 0, 0, 2 /* device attributes */ /* Remaining fields are zero or variable. */ /* [4] */ /* rendering intent */ /* 3 * [4] */ /* illuminant */ }; /* Description */ #define DESC_LENGTH 5 /* "adhoc" */ byte desc[12 + DESC_LENGTH + 1 + 11 + 67]; static const byte desc_data[] = { 'd', 'e', 's', 'c', /* type signature */ 0, 0, 0, 0, /* reserved, 0 */ 0, 0, 0, DESC_LENGTH + 1, /* ASCII description length */ 'a', 'd', 'h', 'o', 'c', 0, /* ASCII description */ /* Remaining fields are zero. */ }; ---------------- the first portion of object stream produced in djntest.PDF is 8 0 obj <</N 1/Length 1912>>stream with references to scrnGRAYXYZ,acsp,A2BO,desc,adhoc...etc > Invalid Color space, Invalid Color space, DestOutputProfile is missing > ----------------------------------------------------------------------- > > Key: PDFBOX-1200 > URL: https://issues.apache.org/jira/browse/PDFBOX-1200 > Project: PDFBox > Issue Type: Bug > Components: Preflight > Affects Versions: 1.7.0 > Reporter: William Fausser > Assignee: Eric Leleu > Attachments: djntest.PDF, picture1.png > > > User submitted attached pdf fails under preflight with the following error: > /home/fausser/djntest.PDF is not valid, error(s): > 2.4.3: Invalid Color space, Invalid Color space, DestOutputProfile is missing > Vendor claims djntest.PDF verifies using commercial validators. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira