I have stumbled onto a strange issue with H&M and the PDF files created.
The software we create is file/image conversion software so the PDF files I create as part of the software documentation often get used in-house for testing. It was during this testing that strange colour issues was noticed with the PDF files generated from H&M (7.2.0 Build 4035).
We first noticed it when printing the PDF file as an image through Adobe Reader to our products, image printers that create images from whatever you print to them; with certain print options the colours in the PDF file were wrong (like they had been switched from RGB order to BGR order).
Then we noticed that converting the same PDF file to an image using Ghostscript (from another product we create) gave us a PDF file with incorrect link colours (red instead of blue) and other incorrectly coloured text.
At first we thought it was an issue with our software and spent a few days debugging and testing accordingly. In the end, the culprit turned out to be a 32bpp PNG file for a small icon image I was using in the documentation. I have been using the image for about two years now and we do not see this behaviour with the same PDF files created with previous versions of H&M.
Finally, at the end of last week we noticed that trying to load the created PDF into Ghostview (set to use Ghostscript 9.21) would give the following errors; we were particularity interested in the ProcessColorModel error.
Code: Select all
GSview 4.9 2007-11-18
GPL Ghostscript 9.21 (2017-03-16)
Copyright (C) 2017 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Scanning PDF file
%GSVIEW_PDF_PAGES: 1 1
Displaying PDF page 1
%GSVIEW_PDF_PAGE: 1
%GSVIEW_PDF_MEDIA: [0 0 612.0 792.0]
%GSVIEW_PDF_ROTATE: 0
%GSVIEW_PDF_MARK: /LNK /View [/XYZ 40.0 545.0 0] /Page 1 /File 4 /Border [0.0 0.0 0.0] /Rect [99.0 583.0 283.000031 595.0] /F 4
Error: /undefined in --get--
Operand stack:
--dict:7/16(L)-- --dict:27/27(ro)(L)-- --dict:27/27(ro)(L)-- ProcessColorModel
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- false 1 %stopped_push 1983 1 3 %oparray_pop 1982 1 3 %oparray_pop 1966 1 3 %oparray_pop 1852 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1212/1684(ro)(G)-- --dict:1/20(G)-- --dict:87/200(L)-- --dict:137/256(ro)(G)-- --dict:297/300(ro)(G)-- --dict:32/32(L)-- --dict:6/9(L)-- --dict:22/40(L)--
Current allocation mode is local
Last OS error: No such file or directory
pdf_page failed
For now I think I can get around this by changing my images to 24bpp PNG files. Is this a known issue?
Thanks,
Sheri