> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chromiumly.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Format conversion

> Convert PDFs to PDF/A and PDF/UA with PDFEngines.convert.

`PDFEngines.convert()` transforms PDF files into the requested PDF/A format and/or PDF/UA (accessibility).

```typescript theme={null}
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](/reference/types) for the full `PdfFormat` enum.
