Ask AI
Table of contents

Thanks for Downloading Dynamic Web TWAIN 30-Day Trial!

Your download will start shortly. If your download does not begin, click here to retry.

Addon

How can I generate PDF/A files?

Dynamic Web TWAIN supports exporting documents as PDF/A starting from version 19.3. PDF/A is an archival format designed for long-term preservation. The following variants are supported:

Supported PDF/A Versions

PDF/A Variant Underlying PDF Version Availability
pdf/a-1b 1.4 (fixed) v19.3+
pdf/a-2b 1.7 (fixed) v19.3+
pdf/a-3b 1.7 (fixed) v19.4+

Recommendation: For most use cases, we recommend using pdf/a-2b. It offers better compression support, fewer limitations, and higher compatibility with modern PDFs while still meeting archival requirements.

Licensing Requirements

Dynamic Web TWAIN does not require any add-on license to export or generate PDF or PDF/A files. However, PDF Rasterizer add-on would be required when loading a PDF/PDF-A file that contains text or vector graphics.

You can programmatically check whether a file needs rasterization using IsRasterizationRequired():

DWTObject.Addon.PDF.IsRasterizationRequired(path); // returns true or false

Behavior and Defaults

  • If you do not set pdfaVersion, the export uses standard PDF format (non-PDF/A).

  • The version setting only applies when exporting standard (non-PDF/A) PDFs. Once pdfaVersion is set, version is ignored — the underlying PDF version is fixed entirely by the PDF/A variant:

    • pdf/a-1b → PDF 1.4
    • pdf/a-2b / pdf/a-3b → PDF 1.7

How to Export as PDF/A

Configure PDF output using Write.Setup() before calling any save function.

DWTObject.Addon.PDF.Write.Setup({
    version: "1.5",          // [optional] Only used for standard (non-PDF/A) PDFs; ignored once pdfaVersion is set
    pdfaVersion: "pdf/a-2b"  // "pdf/a-1b", "pdf/a-2b" (since v19.3), or "pdf/a-3b" (since v19.4)
});

After configuring pdfaVersion, all APIs that output PDF files will automatically generate PDF/A-compliant PDFs. This includes, but is not limited to:

Last modified date: Jul 30, 2026