Web SDKv1.0.0

PDFDocument.pdfA

The PDF/A conformance the file claims in its XMP metadata ({ part: 2, conformance: 'B' }), or null. A claim, not a check: the SDK does not validate it, and does not check what it writes against PDF/A, so a saved file keeps the claim only when nothing changed it. A changed file is saved without the claim, a plain PDF; when the claim cannot be edited out of the metadata, the metadata packet is removed, and when that cannot be done either save() fails with EXPORT_FAILED rather than hand out a file that claims PDF/A. A claim stored in compressed metadata, or in a packet over 1 MiB, is not read.
getterPropertiessince 1.0.0

Signature

get pdfA(): PDFAClaim | null

Returns

PDFAClaim | null { part, conformance? }, or null.

Throws

  • DOCUMENT_CLOSED — read on a closed document.

Example

TypeScript
if (doc.pdfA) console.log('PDF/A-' + doc.pdfA.part + (doc.pdfA.conformance ?? ''));

More in PDFDocument