My university requires submitted PDF files to be in PDF/A format.
I tried to find a converter, but they are all very expensive and/or complicated.
How do I convert my existing PDF file into a PDF/A?
Thank you very much!
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
For saving existing Word documents to PDF/A all you need is a recent version of Microsoft Word. For creating from other products that print you can use a free PDF/A creator like the one at www.freepdfcreator.org
If you need to validate that a PDF/A file is compliant, you can use our free service at www.validatepdfa.com
Converting existing PDF files to PDF/A in a lossless way is a bit more tricky and not always possible. Acrobat 9 and 10 can do this. Our business, Solid Documents, also sells a product that does this (and other common archiving functions) for $99: Solid PDF Tools
There are a lot of PDFs out there which claim to be PDF/A, but fail a real smoke test. That claim is just a tag in the file's metadata. That tag can make f.e. Acrobat Reader display a special hint when rendering it.
A check for real compliancy requires some rather expansive commercial "preflight" software. Currently I'm not aware of any Free utility to do that job. See also here for some test results: Isartor testsuite.
But note: this document was updated only very recently [*]. Previous versions of Ghostscript's Ps2pdf.htm did mis-lead users to run a command that created PDFs claiming to be PDF/A but which failed real smoke tests.
Here is a commandline:
gswin32c ^ -dPDFA ^ -dNOOUTERSAVE ^ -dUseCIEColor ^ -sProcessColorModel=DeviceCMYK ^ -sDEVICE=pdfwrite ^ -o output_pdfa.pdf ^ -dPDFACompatibilityPolicy=1 ^ PDFA_def.ps ^ input.pdf
[*] Note: The problem lays with the parameter
PDFA_def.ps. This is a file you need to edit to suite your needs. Ghostscript ships with a sample of it in its
/lib subdirectory. This sample will not work as-is without you editing it. How to edit is inside the sample's comments.
I used the following command to convert PDF to PDF-A:
gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=MyOutPutPDF-A.pdf PDFOriginal.ps
If you have a PDF file, first convert it to PS to work with the above code. I tried several times with the PDF file to be directly converted to PDF-A. However, it didn't work.
Here is a way to convert your PDF to PS file:
pdftops PDFOriginal.pdf PDFOriginal.ps
Microsoft Office 2007's 'Save as PDF' tool saves in PDF/A format.
A PDF/A document is just a PDF document that uses a specific subset of PDF that is designed to ensure it is 'self-contained'. Ie it is not permitted to be reliant on information from external sources (e.g. font programs and hyperlinks). From wikipedia:
Other key elements to PDF/A compatibility include:
Since there aren't really any tools to test if a PDF is PDF/A, it's a safe bet that just like you, your university also has no way to test that the document you send them is PDF/A.
It's likely that the only reason they specifically request it is so they can be sure that all the content will be "there" when they open it. They just expressed this requirement rather cryptically (And badly) as being that it had to be PDF/A. So a simple way to test if the PDF meet their true requirement of self-containment is to transfer the PDF and view it from another (preferably offline) computer and ensure that everything appears as it should.
In macOSX without using
pdftops which I wasn't able to install (as @soham.m17 proposed) you can do:
pdf2ps oldPdf.pdf psVersionOfOldps.ps
to convert your pdf to ps format and then:
gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=MyOutPutPDF-A.pdf psVersionOfOldps.ps
to convert in pdf/A.
The only way that worked for me on Windows 10 was a slight modification of soham's answer (which for me was working but with errors):
pdf2ps source.pdf temp.ps)
PDF/Ausing Ghostscript 9.22 with
gswin64c -dPDFA -dBATCH -dNOPAUSE -dPDFSETTINGS=/prepress -dNOOUTERSAVE -sColorConversionStrategy=UseDeviceIndependentColor -sProcessColorModel=DeviceRGB -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=destination.pdf temp.ps
(You might need to add before
gswin64c the complete path, which for me was
C:\Program Files\gs\gs9.22\bin\ -- the same for
pdf2ps, in this case the path for me was
If the resulting file is too big you can omit the
-dPDFSETTINGS=/prepress option. Without this option the resulting file is smaller (even smaller than the original in my case), but degradation in image quality can be noted.
PDF/A even without the
-dNOOUTERSAVE option, although less fonts are embedded (maybe someone can explain the difference).
When I say "conforms to
PDF/A" I mean not only that the
PDF/A "banner" shows up on Acrobat Reader but that the file passes the online validation provided by https://www.pdf-online.com/osa/validate.aspx
I don't know how much such online validation service is reliable, however it managed to detect non-conforming files that were showing the
PDF/A "banner" on Acrobat Reader (which therefore does not seem reliable in this respect).
You can install Libre Office , it's free
Open the PDF and save as PDF... [check the PDF/A option]