PdfFormat
PathLikeOrReadStream
string (file path), Buffer, or ReadStream (from fs).
PageProperties (converters)
Every field ofsize and margins defaults independently — set just one dimension or margin and let Gotenberg fill in the rest.
ImageProperties (screenshots)
Split / ConvertSplit
Split is used by the dedicated PDFEngines.split() route, where flatten is part of the split configuration itself:
ConvertSplit (Omit<Split, 'flatten'>) is used by the split option on Chromium converters and LibreOffice.convert(), where flatten is instead a separate top-level option — see Split PDFs.
Metadata
DownloadFrom
downloadFrom when Gotenberg should fetch files from remote URLs that return a Content-Disposition filename.
WebhookOptions
webhook to switch a request to async callback mode. See Request tracing.
OutputOptions
trace only, since there’s no resulting file). See Request tracing.
PdfEnginePermissions
userPassword/ownerPassword are. See PDF permissions.
EmbedsMetadata
FacturXOptions
Cookie
EmulatedMediaType / EmulatedMediaFeature
EmulatedMediaType:'screen'or'print'EmulatedMediaFeature: object withnameandvaluestrings (e.g.prefers-color-scheme,prefers-reduced-motion)
userAgent, header, footer, wait*, extraHttpHeaders, failOn*, skipNetworkIdleEvent, skipNetworkAlmostIdleEvent, generateDocumentOutline, cookies, downloadFrom, webhook, etc.) plus properties, pdfUA, generateTaggedPdf, metadata, split, flatten, userPassword, ownerPassword, the six permission booleans, embeds, embedsMetadata, facturx, watermark/stamp/rotate, and outputFilename/trace. See Converters and Chromium options for the full list.
PdfEngineRotate
Used by converterconvert(), LibreOffice.convert(), PDFEngines.merge(), and PDFEngines.split() as optional post-processing. Angles match Gotenberg: 90, 180, or 270 degrees.
PdfEngineWatermark / PdfEngineStamp
Used by converterconvert(), LibreOffice.convert(), PDFEngines.merge(), PDFEngines.split(), and dedicated PDFEngines.watermark() / PDFEngines.stamp().
image/pdf sources, set expression to the uploaded filename and pass the asset in file.
Bookmark
Template types (hosted API)
The hostedTemplates class exports these types:
Templates.generate(request, { validate?: boolean }) uses TemplateRequest<TType> and returns Promise<Buffer>.