> ## 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.

# PDF engines overview

> Convert to PDF/A and PDF/UA, merge, watermark/stamp, read/write metadata and bookmarks, split, rotate, and flatten PDFs with PDFEngines.

The `PDFEngines` class uses Gotenberg’s [PDF Engines routes](https://gotenberg.dev/docs/8.x/manipulate-pdfs/pdfa-pdfua) to manipulate existing PDFs. It does not create PDFs from HTML or URLs; use the [Chromium](https://docs.chromiumly.dev/v6/chromium/overview.md) or [LibreOffice](https://docs.chromiumly.dev/v6/libreoffice.md) routes for that. Merge order is **alphanumeric** by filename (same as Gotenberg).

## Operations

| Method | Description |
| - | - |
| `convert` | Convert PDFs to PDF/A and/or PDF/UA |
| `merge` | Merge multiple PDFs into one |
| `watermark` | Apply watermark overlays behind page content |
| `stamp` | Apply stamp overlays on top of page content |
| `readMetadata` | Read metadata from PDFs |
| `writeMetadata` | Write metadata to PDFs |
| `readBookmarks` | Read PDF bookmarks (document outline) |
| `writeBookmarks` | Write PDF bookmarks (document outline) |
| `split` | Split PDFs by page ranges or intervals |
| `rotate` | Rotate pages of existing PDFs |
| `flatten` | Flatten forms and annotations |
| `encrypt` | Encrypt existing PDFs with user/owner passwords and permissions |
| `embed` | Attach files to existing PDFs |
| `facturX` | Turn existing PDFs into Factur-X / ZUGFeRD e-invoices |
| `generate` | Helper to write a buffer to a file (e.g. `__generated__/out.pdf`) |

All methods accept `files` as an array of paths or `{ data, ext }` objects. Every method also accepts the cross-cutting `downloadFrom`, `webhook`, `outputFilename`, and `trace` parameters — see [Request tracing](https://docs.chromiumly.dev/v6/advanced/request-tracing.md). See the individual pages for parameters and examples.

## Next pages

* [Convert](https://docs.chromiumly.dev/v6/pdf-engines/convert.md) — PDF/A and PDF/UA
* [Merge](https://docs.chromiumly.dev/v6/pdf-engines/merge.md)
* [Watermark and stamp](https://docs.chromiumly.dev/v6/pdf-engines/watermark-stamp.md)
* [Metadata](https://docs.chromiumly.dev/v6/pdf-engines/metadata.md) — read/write metadata and bookmarks
* [Split](https://docs.chromiumly.dev/v6/pdf-engines/split.md)
* [Rotate](https://docs.chromiumly.dev/v6/pdf-engines/rotate.md)
* [Flatten](https://docs.chromiumly.dev/v6/pdf-engines/flatten.md)
* [Encrypt](https://docs.chromiumly.dev/v6/pdf-engines/encrypt.md) — dedicated encryption route
* [Embed](https://docs.chromiumly.dev/v6/pdf-engines/embed.md) — dedicated attachment route
* [Factur-X](https://docs.chromiumly.dev/v6/pdf-engines/factur-x.md) — dedicated e-invoice route


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.