Jump to content

PDF/X-3 using Ghostscript on Windows

From tango.info wiki
Revision as of 2012-12-11T03:55:35 by Tobiasco (talk | contribs) (Windows)

Windows

  • C:\Program Files (x86)\gs\gs9.06\bin\gswin32c.exe
  • C:\Program Files (x86)\gs\gs9.06\lib\PDFX_def.ps
    • copy to C:\all\projects\pdf-x-3\PDFX_def.ps
    • OLD: /ICCProfile (ISO Coated sb.icc) def  % Customize or remove.
    • NEW: /ICCProfile (C:/Windows/System32/spool/drivers/color/ISOcoated_v2_300_eci.icc) def  % Customize or remove.

Testing http://meiradarocha.jor.br/news/2012/08/25/como-criar-um-documento-pdfx-3-com-o-ghostscript/

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sColorConversionStrategy=CMYK -sOutputFile=doc_CMYK.pdf -dProcessColorModel=/DeviceCMYK -dCompatibilityLevel=1.4 doc.pdf

TEST-1

C:\Program Files (x86)\gs\gs9.06>bin\gswin32c -q -dNOPAUSE -dBATCH -sDEVICE=pdfw
rite -sColorConversionStrategy=CMYK -sOutputFile=doc_CMYK.pdf -dProcessColorMode
l=/DeviceCMYK -dCompatibilityLevel=1.4 ti.pdf
GPL Ghostscript 9.06:
Unable to convert color space to CMYK, reverting strategy to LeaveColorUnchanged
.

RESULT: CMYK conversion not possible. The output during the test was created in the users directory.

TEST-2,

bin\gswin32c -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sColorConversionStrategy=CMYK -sOutputFile=output.pdf -dProcessColorModel=/DeviceCMYK -dCompatibilityLevel=1.4 -f C:\all\projects\pdf-x-3\PDFX_def.ps input.pdf

AGAIN: Unable to convert color space to CMYK, reverting strategy to LeaveColorUnchanged.