PDFEngines class uses Gotenberg’s PDF Engines routes to manipulate existing PDFs. It does not create PDFs from HTML or URLs; use the Chromium or LibreOffice 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 |
readMetadata | Read metadata from PDFs |
writeMetadata | Write metadata to PDFs |
split | Split PDFs by page ranges or intervals |
flatten | Flatten forms and annotations |
generate | Helper to write a buffer to a file (e.g. __generated__/out.pdf) |
files as an array of paths or { data, ext } objects. See the individual pages for parameters and examples.