OptionaldecodeDecoder for non-JPEG formats. Falls back to createImageBitmap +
OffscreenCanvas when available (browsers, workers, Deno, Bun) and, failing
that, throws — so pass this (or pre-decoded PdfRawImages) on Node.
OptionaldpiPixels-per-inch used to convert an image's pixel size into the page size in
points. Default 72 (1 pixel = 1 point). Ignored for any image whose page
size is fixed by pageSize.
OptionalpageFixed page size in points (1/72 inch) applied to every page; the image is scaled to fill it. When omitted, each page is sized from its own image via dpi.
Options for PdfDocument.createPagesFromImages.