modern-pdf-lib / resizePage
Function: resizePage()
resizePage(
doc,index,size):void
Defined in: src/core/pageManipulation.ts:324
Resize a page by setting its media box.
Note: This changes the page dimensions but does not scale existing content. Content that was drawn at coordinates beyond the new dimensions may be clipped.
Parameters
doc
The PdfDocument to modify.
index
number
Zero-based page index.
size
New page size.
Returns
void