Export PDF/A Format Documents in C#
Newer Standards
The best resource for supporting PDF accessibility and Section 508 compliance with IronPDF is now in our Creating Accessible PDFs & Section 508 Compliance article
How to Generate PDFA Compliance PDF in C#
- Install C# library to generate PDFA compliance PDF
- Use intuitive APIs to convert HTML to PDF
- Add customize header and footer to newly made PDF
- Save the PDF as new document
- Set dPDFA flag using
Ghostscript
to convert the generated PDF to PDFA compliance
PDF/A
IronPDF can not yet fully support PDF/A format from a HTML to PDF conversion in C# or VB.NET.
To achieve PDF/A we create our PDFs using IronPDF and then run them through Ghostscript to convert to PDF/A.
Please install Ghostscript. You may need to install Ghostscript 32 bit even on 64 bit platforms.
You may then convert an IronPDF document to PDF to PDFA using the dPDFA
flag.
gs -dPDFA -dBATCH -dNOPAUSE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=output_filename.pdf input_filename.pdf
Good Reading:
https://stackoverflow.com/questions/1659147/how-to-use-ghostscript-to-convert-pdf-to-pdf-a-or-pdf-x
https://stackoverflow.com/questions/23957570/how-do-i-execute-ghostscript-from-c-sharp-program