Recipes for converting PDF to PDF/A

Petter Reinholdtsen pere at hungry.com
Thu May 18 19:11:12 CEST 2017


One task we need to implement in the core, is converting PDF files to
PDF/A if they are not already in PDF/A form.  I had a quick look, and
found this recipe on
<URL: https://unix.stackexchange.com/questions/79516/converting-pdf-to-pdf-a >:

  gs -sDEVICE=pdfwrite -q -dNOPAUSE -dBATCH -dNOSAFER     \
    -dPDFA -dUseCIEColor -sProcessColorModel=DeviceCMYK       \
    -sOutputFile=Out_PDFA.pdf PDFA_def.ps pdfmarks IN_PDF.pdf

and

  java FixPrintFlag Out_PDFA.pdf New_verifiablePDFA.pdf

Based on are recipe available from
<URL: http://thisthatisnot.blogspot.no/2010/04/free-way-to-convert-existing-pdf-to.html >.

I wonder, should this be a task done by a API client, or a task done
internally in the server?  What do the rest of you think?  I suspect
doing it via the API will either loose some metadata or must be done
using operations that allow us to set metadata that normally should not
be modifyable via the API.

-- 
Happy hacking
Petter Reinholdtsen


More information about the nikita-noark mailing list