Conversion to PDF-A fails

Last update: 21 February 2018

Information

You may receive an error code 1 while converting a content object into a PDF/A object:

The command line conversion returns with error code: 1
  • You're using GPL Ghostscript as conversion tool.
  • Converting a Note object to PDF works properly.

Solution

The ICC profile can't be found in your PDFA_def.ps file. (located e.g. in C:\Program Files\gs\gs\lib ) because you're using double quotes and single backslahes in the path:

/ICCProfile ("C:\Program Files\gs\gs\sRGB_IEC61966-2-1_no_black_scaling.icc")

The GPL Ghostscript Syntax does not allow the use of double quotes in the file path. Furthermore you have to use double backslahes (for Microsoft Windows). Your ICC profile path should look like these (either one depending on your syntax - please also ensure the correct usage or the parenthesis):

/ICCProfile (C:\\Program Files\\gs\\gs\\sRGB_IEC61966-2-1_no_black_scaling.icc)
/ICCProfile (C:/Program Files/gs/gs/sRGB_IEC61966-2-1_no_black_scaling.icc)

Applies To

All conversion servers using GPL Ghostscript.