How to use ghostscript to convert PDF to PDF/A or PDF/X?

imgen picture imgen · Nov 2, 2009 · Viewed 63.7k times · Source

Is there a way to use ghostscript to convert PDF to PDF/A or PDF/X? I know it can be used to convert PDF to images, but I don't know if it can be used to convert PDF/A. What parameters should I use?

Answer

Artur picture Artur · Feb 18, 2012

This is to convert a pdf document (not pdf/a) into pdf/a: gs -dPDFA -dBATCH -dNOPAUSE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=output_filename.pdf input_filename.pdf

Hope this will help some one!