---
title: "ImagesToPdfOptions"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/interfaces/imagestopdfoptions/"
---

# ImagesToPdfOptions

Defined in: [packages/sdk/src/builder.ts:1252](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L1252)

How [imagesToPdf](/reference/sdk/functions/imagestopdf.md) lays its images out, and the new document's options.

## Since

0.3.0

## Extends

- `Omit`\<[`BuilderOptions`](/reference/sdk/interfaces/builderoptions.md), `"text"`\>

## Properties

### compress?

```ts
compress?: boolean;
```

Defined in: [packages/wasm/dist/lamina\_pdf\_text.d.ts:6025](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/wasm/dist/lamina_pdf_text.d.ts#L6025)

Flate-compress content streams (default `true`).

#### Inherited from

`Omit.compress`

***

### creationDate?

```ts
creationDate?: string;
```

Defined in: [packages/wasm/dist/lamina\_pdf\_text.d.ts:6021](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/wasm/dist/lamina_pdf_text.d.ts#L6021)

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

#### Inherited from

`Omit.creationDate`

***

### defaultDpi?

```ts
readonly defaultDpi?: number;
```

Defined in: [packages/sdk/src/builder.ts:1262](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L1262)

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

***

### fit?

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

Defined in: [packages/sdk/src/builder.ts:1258](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L1258)

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.

***

### id?

```ts
readonly id?: string | Uint8Array<ArrayBufferLike>;
```

Defined in: [packages/sdk/src/builder.ts:84](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L84)

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

#### Inherited from

`Omit.id`

***

### margin?

```ts
readonly margin?: number;
```

Defined in: [packages/sdk/src/builder.ts:1260](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L1260)

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

***

### producer?

```ts
producer?: string;
```

Defined in: [packages/wasm/dist/lamina\_pdf\_text.d.ts:6017](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/wasm/dist/lamina_pdf_text.d.ts#L6017)

`/Producer`.

#### Inherited from

`Omit.producer`

***

### profiles?

```ts
profiles?: ProfileInit[];
```

Defined in: [packages/wasm/dist/lamina\_pdf\_text.d.ts:6035](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/wasm/dist/lamina_pdf_text.d.ts#L6035)

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.

#### Inherited from

`Omit.profiles`

***

### tagged?

```ts
tagged?: boolean;
```

Defined in: [packages/wasm/dist/lamina\_pdf\_text.d.ts:6030](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/wasm/dist/lamina_pdf_text.d.ts#L6030)

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

#### Inherited from

`Omit.tagged`

***

### version?

```ts
version?: PdfVersionInit;
```

Defined in: [packages/wasm/dist/lamina\_pdf\_text.d.ts:6009](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/wasm/dist/lamina_pdf_text.d.ts#L6009)

The header version (default 1.7).

#### Inherited from

`Omit.version`
