[gs-bugs] [Bug 691448] [Documentation] Sample command for PDF/A generation does not work

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Fri Jul 9 18:16:07 UTC 2010


--- Comment #1 from Ken Sharp <ken.sharp at artifex.com> 2010-07-09 18:16:04 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 ^
>     -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

> 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

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list