Skip to content

happypdf / PDFAConformanceLevel

Type Alias: PDFAConformanceLevel

ts
type PDFAConformanceLevel = "1B" | "2B" | "2U" | "3B" | "3U";

Defined in: src/api/pdfa/PDFAConformance.ts:19

The PDF/A conformance level to target when converting a document with [[PDFDocument.convertToPDFA]].

The number denotes the PDF/A part:

  • 1 — PDF/A-1 (ISO 19005-1, based on PDF 1.4)
  • 2 — PDF/A-2 (ISO 19005-2, based on PDF 1.7)
  • 3 — PDF/A-3 (ISO 19005-3, based on PDF 1.7, allows arbitrary attachments)

The letter denotes the conformance level:

  • B (Basic) — guarantees reliable visual reproduction.
  • U (Unicode, parts 2 & 3 only) — like B, but additionally requires that all text has Unicode mappings.

Level A (Accessible) is intentionally not offered: it requires a fully tagged, logically structured document, which cannot be produced automatically from an arbitrary PDF.

MIT Licensed. A fork of pdf-lib.