Skip to main content
The 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

MethodDescription
convertConvert PDFs to PDF/A and/or PDF/UA
mergeMerge multiple PDFs into one
readMetadataRead metadata from PDFs
writeMetadataWrite metadata to PDFs
splitSplit PDFs by page ranges or intervals
flattenFlatten forms and annotations
generateHelper 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. See the individual pages for parameters and examples.

Next pages