PDF to PDF/A API

Reliable PDF to PDF/A API for archiving, VeraPDF certified, bulk processing, optional e-invoice XML.

PDF Tools

PDF to PDF/A API Overview

Leverage our PDF to PDF/A API to convert your PDFs into the PDF/A format, tailored for archival and preservation needs.

This tool supports PDF/A ISO conformance levels, such as PDF/A-1a, PDF/A-1b, PDF/A-2a, PDF/A-2b, PDF/A-2u, PDF/A-3a, PDF/A-3b, PDF/A-3u, PDF/A-4, PDF/A-4e, and PDF/A-4f, ensuring your documents meet strict archival standards.

E-Invoice ready. Optionally embed structured e-invoice XML in the output PDF/A. We support Factur-X 1.0 and ZUGFeRD 1.0/2.0 profiles, ideal for compliant archiving and exchange. Use with PDF/A-3 to include the XML payload alongside the visual PDF.

It's ideally suited for professionals and organizations looking for a dependable solution for document preservation, offering customizable options to fit various compliance and archival requirements. With our API, secure and long-term document storage becomes straightforward and efficient.

VeraPDF Certified

Industry-leading VeraPDF compliance for trusted validation.

Full ISO Compliance

Supports PDF/A-1a/1b, PDF/A-2a/2b/2u, PDF/A-3a/3b/3u, and PDF/A-4/4e/4f with full conformance options.

Batch Conversion Ready

Convert large volumes of PDFs to PDF/A efficiently.

Regulatory Archiving

Meet archiving standards required by governments worldwide.

E-Invoice Embedding

Embed Factur-X or ZUGFeRD XML in PDF/A-3 (a/b/u) for compliant e-invoicing.

Future-Proof Viewing

Ensure documents display correctly now and decades later.

Customizable Parameters

Fine-tune your automation with these powerful conversion options

File

File Supported formats: .pdf

File to be converted. Value can be URL or file content.

Password

String

Sets the password to open protected PDF.

PdfaVersion

Collection Default: pdfA2b

Set PDF/A version.

Values:   pdfA1a pdfA1b pdfA2a pdfA2b pdfA2u pdfA3a pdfA3b pdfA3u pdfA4 pdfA4e pdfA4f

InvoiceFormat

Collection Default: none

Selects the e-invoice format to embed. Choosing any e-invoice format overrides the selected PDF/A version and outputs PDF/A-3. Requires a valid structured invoice XML.

Values:   none facturX zugferd1 zugferd2

InvoiceFile

File Supported formats: .xml

Specifies the structured invoice XML (ZUGFeRD / Factur-X) to embed for hybrid-invoice compatibility. Required when InvoiceFormat is enabled.

Linearize

Bool Default: False

Linearize PDF file and optimize for fast Web View.

StoreFile

Bool Default: False

When the StoreFile parameter is set to True, your converted file is written to ConvertAPI’s encrypted, temporary storage and made available via a time-limited secure download URL, valid for up to 3 hours. After this period, the file is permanently deleted.

When StoreFile is set to False, conversion happens entirely in-memory. The raw file bytes are streamed back in the API response without touching disk or external storage, ensuring maximum security and zero persistence so that only you can access the content.

Integrate using REST-API

Ready-to-run code samples for quick conversion and automation.

Quick start

Convert any PDF to archival-ready PDF/A (default PdfA2b) with one simple POST call.

curl -X POST https://v2.convertapi.com/convert/pdf/to/pdfa \
  -H "Authorization: Bearer <API_TOKEN>" \
  -F "File=@/path/to/document.pdf" \
  -o output-pdfa.pdf

Choose your PDF/A version

Target the exact ISO profile your policy demands—PDF/A-1/2/3/4 including 4e/4f for engineering.

# Supported: PdfA1a, PdfA1b, PdfA2a, PdfA2b, PdfA2u,
#            PdfA3a, PdfA3b, PdfA3u, PdfA4, PdfA4e, PdfA4f
curl -X POST https://v2.convertapi.com/convert/pdf/to/pdfa \
  -H "Authorization: Bearer <API_TOKEN>" \
  -F "File=@/path/to/document.pdf" \
  -F "PdfaVersion=PdfA4e" \
  -o output-pdfa4e.pdf

Embed e-invoice XML (Factur-X)

Combine a human-readable PDF with machine-readable Factur-X 1.0 data for compliant e-invoicing.

curl -X POST https://v2.convertapi.com/convert/pdf/to/pdfa \
  -H "Authorization: Bearer <API_TOKEN>" \
  -F "File=@/path/to/document.pdf" \
  -F "InvoiceFile=@/path/to/invoice.xml" \
  -F "PdfaVersion=PdfA3b" \
  -F "InvoiceFormat=facturX" \
  -o invoice-pdfa3b-facturx.pdf

Embed e-invoice XML (ZUGFeRD 2.0)

Add ZUGFeRD 2.0 XML to PDF/A-3 for modern e-invoice exchange and long-term archiving.

curl -X POST https://v2.convertapi.com/convert/pdf/to/pdfa \
  -H "Authorization: Bearer <API_TOKEN>" \
  -F "File=@/path/to/document.pdf" \
  -F "InvoiceFile=@/path/to/invoice.xml" \
  -F "PdfaVersion=PdfA3b" \
  -F "InvoiceFormat=zugferd2" \
  -o invoice-pdfa3b-zugferd2.pdf

Batch convert invoices (Linux/macOS)

Scale to folders of invoices with a tiny shell loop—great for nightly jobs and migrations.

for pdf in /invoices/*.pdf; do
  xml="${pdf%.pdf}.xml"
  out="/converted/$(basename "${pdf%.pdf}")-pdfa3b-facturx.pdf"
  [ -f "$xml" ] || { echo "Missing XML for $pdf"; continue; }
  curl -s -X POST https://v2.convertapi.com/convert/pdf/to/pdfa \
    -H "Authorization: Bearer <API_TOKEN>" \
    -F "File=@${pdf}" \
    -F "InvoiceFile=@${xml}" \
    -F "PdfaVersion=PdfA3b" \
    -F "InvoiceFormat=facturX" \
    -o "$out"
  echo "Saved: $out"
done

Windows PowerShell (non-invoice)

Call the same endpoint from Windows environments—ideal for scheduled tasks.

$token = "<API_TOKEN>"
Invoke-WebRequest `
  -Uri "https://v2.convertapi.com/convert/pdf/to/pdfa" `
  -Method Post `
  -Headers @{ Authorization = "Bearer $token" } `
  -Form @{ 
    File = Get-Item "C:\files\document.pdf"
    PdfaVersion = "PdfA4f"
  } `
  -OutFile "C:\files\output-pdfa4f.pdf"

Windows PowerShell (PDF + XML)

Send a PDF together with an e-invoice XML.

$token = "<API_TOKEN>"
Invoke-WebRequest `
  -Uri "https://v2.convertapi.com/convert/pdf/to/pdfa" `
  -Method Post `
  -Headers @{ Authorization = "Bearer $token" } `
  -Form @{ 
    File = Get-Item "C:\files\document.pdf"
    InvoiceFile = Get-Item "C:\files\invoice.xml"
    PdfaVersion = "PdfA3b"
    InvoiceFormat = "facturX"
  } `
  -OutFile "C:\files\invoice-pdfa3b-facturx.pdf"

Integrate within minutes

Easy PDF to PDF/A automation using our simple REST-API

Try the PDF to PDF/A conversion online

Try it Free

Businesses trust us

Highest rated File Conversion API on major B2B software listing platforms: Capterra, G2, and Trustpilot.

"ConvertAPI has been a game-changer for our document automation workflows. Their conversion accuracy and API reliability are unmatched in the industry for over 7 years."

"ConvertAPI is a reliable, cost-effective solution with a proven track record of stability. It has grown significantly in maturity, adopting enterprise-grade practices over the years."

"We've integrated ConvertAPI across our entire document processing platform. The performance is exceptional and the support team is always responsive. Highly recommended!"

Enterprise-Grade Security

We ensure that all document processing is handled securely in the cloud, adhering to industry-leading standards like ISO 27001, GDPR, and HIPAA. To enhance security even further, we can ensure that no files or data are stored on our servers and never leave your country.

Learn more about security

Ready to Streamline Your File Conversions?