Click or drag to resize
Pdftools logo

PageUpdateSize Method

Update the page size to a specified rectangle.

Note that all page-related coordinates are normalized to the crop box of the page. Updating the page size thus changes the coordinate system, rendering all previously extracted coordinates invalid.

Namespace: PdfTools.FourHeights.PdfToolbox.Pdf
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 1.0.0
Syntax
C#
public void UpdateSize(
	Rectangle rectangle
)

Parameters

rectangle  Rectangle
the rectangle to update the page size to.
Exceptions
ExceptionCondition
InvalidOperationExceptionif the owning document has already been closed
InvalidOperationExceptionif the page has already been closed
NotSupportedExceptionif the page is read-only
See Also