[gs-devel] Problem using gs to build a PDF/A (Error: /undefinedfilename in --file-- )
ken.sharp at artifex.com
Thu Jul 1 08:16:39 UTC 2010
At 17:42 30/06/2010 +0200, Vianney Lejeune wrote:
>There isn't any problem to build the file, but I want to build independent
>color PDF/A files (-dUseCIEColor), so I guess I don't need the
>-sProcessorColorModel switch, but I encounter this issue:
>$gs -q -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor
>-sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=out-a.pdf
>Unrecoverable error: rangecheck in .putdeviceprops
>Is -sProcessorColorModel switch mandatory ?
Yes, for PDF/A and PDF/X output.
>If yes, why should I use it to build an independent color PDF/A files ?
pdfwrite doesn't know what colour space the colours are defined in, in the
input file. Although you have specified -dUseCIEColor so that colours are
transformed into CIEBased colour spaces pdfwrite has no way to know this.
Also if the input was a PostScript file this switch could be turned off
again, meaning that colours might then be encountered in a device-dependent
PDF/A specifies permissible device-dependent colour spaces, and you may
only use one of them in a given file. pdfwrite requires that you specify
which colour space you will use, so that if it should encounter a colour in
a device-dependent colour space it will know what to do with it.
More information about the gs-devel