Summary: | [Documentation] Sample command for PDF/A generation does not work | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | pipitas |
Component: | Documentation | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 8.71 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Customer: | Word Size: | --- |
Description
pipitas
2010-07-09 17:44:17 UTC
(In reply to comment #0) > OK, I change the ProcessColorModel according to the hint in the message and try > this: > > gswin32c.exe ^ > -dPDFA ^ > -dBATCH ^ > -dNOPAUSE ^ > -dNOOUTERSAVE ^ > -dProcessColorModel=/DeviceCMYK ^ > -sDEVICE=pdfwrite ^ > -sOutputFile=tiger.pdf ^ > c:\gs\examples\tiger.eps > > But this also doesn't work. It gives this error: > > -------------------------------------------------------------------- > GPL Ghostscript 8.71 (2010-02-10) > Copyright (C) 2010 Artifex Software, Inc. All rights reserved. > This software comes with NO WARRANTY: see the file PUBLIC for details. > Error: /undefinedfilename in --file-- > Operand stack: > --nostringval-- --nostringval-- (ISO Coated sb.icc) (r) You *must* modify the PDFA_def file, it is not 'complete' as it stand, and cannot be made so. In particular you must specify the ICC profile to be used as the OutputIntent in the destination PDF/A file. The example PDFA_def.ps file includes (ISO Coated sb.icc) but this is just a place holder. You need to put a fully qualified path to your chosen ICC profile in here. The undefinedfilename error is telling you that it can't find the file (ISO Coated sb.icc) You should also review the other options in the file and alter them as appropriate. > So my next attempt is this (skipping the "PDFA_def.ps" from the commandline): That will produce a PDF file marked as PDF/A, but missing required information, so it won't be a valid PDF/A file. > I replace it with "/ICCProfile (default_cmyk.icc) def", since such an .icc file > indeed is available in the "iccprofiles" subdirectory (I couldn't find one > called "ISO Coated sb.icc"). Still no success... > > Only after putting an absolute, full path into the definition I really get an > PDF created: "/ICCProfile (C:\\gs\\iccprofiles\\default_cmyk.icc) def" > > [I did not check if the result passes PDF/A verification by tools such as the > one from Callas Software. But I will check as soon as I have access to such a > tool.] It should be OK. We do have customers using this facility, so I believe it works. Thank you for providing the clues. This should be expressed in the documentation ("Ps2pdf.htm") just as forcefully is it is in comment #1. Especially the "need to put a fully qualified path to your chosen ICC profile in here" part is missing from the docu right now. (In reply to comment #2) > Thank you for providing the clues. This should be expressed in the > documentation ("Ps2pdf.htm") just as forcefully is it is in comment #1. Much of it is, though it is contained in the PDF/X-3 documentation and referred back to from the PDF/A docs. > Especially the "need to put a fully qualified path to your chosen ICC profile > in here" part is missing from the docu right now. This was probably less confusing previously, as we didn't ship with an iccprofiles directory. I've modified the PDF/A documentation, and some of the PDF/X documentation to make this clearer, including emphasising the need for a ProcessColorModel even when using -dUseCIEColor, as this has come up before. Changes made in r11506, patch here: http://ghostscript.com/pipermail/gs-cvs/2010-July/011390.html |