PDF Standards: PDF/A, PDF/X |
By default the converter generates standard PDF documents that every PDF reader opens. With the PdfStandardSubset property it generates documents that conform to an ISO subset of PDF - for long term archiving (PDF/A), for printing (PDF/X) or for electronic invoices (PDF/A-3).
PdfStandardSubset | Standard | Use |
|---|---|---|
Full | The default: every PDF feature can be used. | |
Pdf_A_1b | PDF/A-1b (ISO 19005-1) | Long term archiving, for systems that require PDF/A-1. No transparency. |
Pdf_A_2b | PDF/A-2b (ISO 19005-2) | Long term archiving; transparency and layers allowed. The usual choice for archiving. |
Pdf_A_3b | PDF/A-3b (ISO 19005-3) | PDF/A-2b that can embed files of any type (associated files): electronic invoices, source data. |
Pdf_A_3u | PDF/A-3u | PDF/A-3b with Unicode text that can be reliably extracted and searched. |
Pdf_A_3a | PDF/A-3a | PDF/A-3u with a tagged, accessible structure. Needs Tagged = true and the Chromium or Blink engine. |
Pdf_X_1a | PDF/X-1a:2003 (ISO 15930-4) | Graphics exchange for printing: CMYK colors, no transparency. |
Pdf_SiqQ_a, Pdf_SiqQ_b | PDF/SigQ level A and B | Documents meant to be digitally signed. |
A PDF/A document embeds all its fonts and carries the metadata that identifies it as PDF/A. PDF/A-3b and PDF/A-3u are not available with the WebKit2 engine.
A PDF/A-3 document can carry other files - the data behind a report, the source document, an XML invoice. Convert to a Document object, add the files with AddAssociatedFile, then save. The AttachmentRelationship says how the file relates to the document (Source, Data, Alternative, Supplement).
PdfConverter converter = new PdfConverter(); converter.PdfStandardSubset = PdfStandardSubset.Pdf_A_3b; Document document = converter.GetPdfDocumentObjectFromUrl("https://www.example.com/sales-report"); // the data the report was made from, embedded as an associated file document.AddAssociatedFile("sales.csv", AttachmentRelationship.Data, "text/csv", "Sales figures"); document.Save("sales-report.pdf"); document.Close();
For electronic invoices, use AddZugferdInvoice, which also writes the invoice metadata the standards require.