Skip to main content
PDFEngines.convert() transforms PDF files into the requested PDF/A format and/or PDF/UA (accessibility).
import { PDFEngines, PdfFormat } from "chromiumly";

const buffer = await PDFEngines.convert({
  files: ["path/to/file_1.pdf", "path/to/file_2.pdf"],
  pdfa: PdfFormat.A_2b,
  pdfUA: true,
});
Returns a single PDF buffer. Use PdfFormat for the desired PDF/A variant (e.g. PdfFormat.A_1a, PdfFormat.A_2b, PdfFormat.A_3b). See Reference — types for the full PdfFormat enum.