Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

ImagesToPdfOptions

Defined in: packages/sdk/src/builder.ts:1252

How imagesToPdf lays its images out, and the new document’s options.

0.3.0

compress?: boolean;

Defined in: packages/wasm/dist/lamina_pdf_text.d.ts:6025

Flate-compress content streams (default true).

Omit.compress


creationDate?: string;

Defined in: packages/wasm/dist/lamina_pdf_text.d.ts:6021

/CreationDate, a PDF date (D:20261030120000Z).

Omit.creationDate


readonly defaultDpi?: number;

Defined in: packages/sdk/src/builder.ts:1262

The resolution of an image whose file gives none, in dots per inch (default 72).


readonly fit?:
| PageSizeName
| readonly [number, number];

Defined in: packages/sdk/src/builder.ts:1258

Each page this size, turned the image’s way (landscape for an image wider than it is tall), the image fitted inside the margins and centred. Default: each page is its image’s size at the image’s resolution.


readonly id?: string | Uint8Array<ArrayBufferLike>;

Defined in: packages/sdk/src/builder.ts:84

/ID[0]: 16 bytes, as 32 hex digits or a Uint8Array (default: derived from the content).

Omit.id


readonly margin?: number;

Defined in: packages/sdk/src/builder.ts:1260

The space around each image, in points (default 0).


producer?: string;

Defined in: packages/wasm/dist/lamina_pdf_text.d.ts:6017

/Producer.

Omit.producer


profiles?: ProfileInit[];

Defined in: packages/wasm/dist/lamina_pdf_text.d.ts:6035

Conformance profiles: PDF/UA-1 with at most one PDF/A profile. finish then fails with a coded error for each machine-checkable rule the document breaks.

Omit.profiles


tagged?: boolean;

Defined in: packages/wasm/dist/lamina_pdf_text.d.ts:6030

A tagged document (structure tree, /MarkInfo) even before any element (default false; a page using beginTag or beginArtifact makes it tagged either way).

Omit.tagged


version?: PdfVersionInit;

Defined in: packages/wasm/dist/lamina_pdf_text.d.ts:6009

The header version (default 1.7).

Omit.version