OptionalshowLogo?: booleanOptionaldisplayHeaderFooter?: booleanOptionalfooterTemplate?: stringOptionalformat?: OptionalheaderTemplate?: stringOptionalheight?: string | numberOptionallandscape?: booleanOptionalmargin?: {OptionalomitBackground?: booleanOptionaloutline?: booleanOptionalpageRanges?: stringOptionalpreferCSSPageSize?: booleanOptionalprintBackground?: booleanOptionalscale?: numberOptionaltagged?: booleanOptionaltimeout?: numberOptionalwidth?: string | number
Renders
bodyHtmlwrapped in the CFX letterhead (header logo + footer + margins) and materializes the resulting stream into bytes. The single entry point for CFX-branded PDFs — callers never assemble the letterhead options themselves. ExtraPDFOptionsare layered between the default footer and the forced branding: a caller may overridefooterTemplate(e.g. a bank-specific disclaimer) but not the header/margins/format. Throws when the underlying render returnsnull(a Cloudflare-side error — renderPdfFromHtml returnsnullrather than throwing on a non-2xx response), so a failed render can never surface as an empty PDF.