Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need to convert a PDF file to PDF/A. Which libraries are available? (Preferabl

ID: 661050 • Letter: I

Question

I need to convert a PDF file to PDF/A.

Which libraries are available? (Preferably Delphi but other platforms should be OK, even .NET).

My preferred option would have been to use http://synactis.com/pdf-in-the-box.htm (which is the one used to create the PDF file that I need to convert to PDF/A), but it seems that the PDF/A files it generates (at least in demo mode for Extended Features) are not valid.

To avoid recreating the PDF from scratch with a new library by painting everything in a Canvas, it would be very convenient that the library took a rendered PDF as input to create a PDF/A (1.4 or greater) version of it as output.

Explanation / Answer

If a commercial library is an option for you, then you can try Amyuni PDF Suite ActiveX, which can be used from Delphi.

Amyuni PDF Suite has two components, a PDF viewer/editor, and a virtual printer driver. What you would need to do is to install the virtual printer driver, configure it for producing PDF-A, then open your PDF files with the viewer and reprint them to the virtual printer. The printer can be configured using another ActiveX interface, so you can also do that from Delphi.

Note that PDF-A requires all fonts to be embedded in the output file, so if some of your input files specify a font that is not present on the system where the conversion takes place, this font will be replaced with another one permanently.

Also some of the fonts embedded in your input files might not have all the required information to be used in PDF-A, in such cases the font characters will be converted into regular PDF drawings (text selection will not work on them).

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote