PDFEngines.embed
Attaches files to existing PDFs directly using Gotenberg’s embed route, without going through a conversion:- files — PDFs to embed into.
- embeds — Files to attach inside the PDF.
- embedsMetadata — Per-attachment metadata keyed by filename, for PDF/A-3 and Factur-X compliance.
downloadFrom, webhook, outputFilename, and trace are also accepted — see Request tracing.
Embedding on convert routes
Chromium converters andLibreOffice.convert() also accept embeds and embedsMetadata directly, so you can attach files in the same request that generates the PDF. See Embedding files for the full cross-cutting reference and the embedsMetadata shape.