Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

ResizePagesOptions

Defined in: packages/sdk/src/transaction.ts:237

Options for resizePages.

0.4.0

readonly anchor?: Anchor;

Defined in: packages/sdk/src/transaction.ts:244

Where "extend" puts the old page; "center" when left out.


readonly mode?: "scale" | "extend";

Defined in: packages/sdk/src/transaction.ts:242

"scale" (the default) scales the page as shown to fit the new paper, keeping its proportions, and centres it; "extend" keeps the content’s size and places it at anchor.