embeds array to attach files to the generated PDF. Each item can be a file path string, a Buffer, or a ReadStream.
Attachment metadata
OptionalembedsMetadata sets per-attachment metadata, keyed by filename, required for PDF/A-3 and Factur-X compliance:
Embedding into existing PDFs
There’s also a dedicatedPDFEngines.embed() route for attaching files to existing PDFs directly, without a conversion: