 | 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.Toolbox.PdfAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.12.0+5e7853f3b1a241c2ec0dd9e8fc4b9015d17a37d8
Syntaxpublic void UpdateSize(
Rectangle rectangle
)
Parameters
- rectangle Rectangle
-
the rectangle to update the page size to.
Exceptions| Exception | Condition |
|---|
| InvalidOperationException | if the owning document has already been closed |
| InvalidOperationException | if the page has already been closed |
| NotSupportedException | if the page is read-only |
See Also