PDFRasterizer.NET 4.0 is now available. Supports .NET Core. Renders pixel-perfectly.

Constructor PageShape

Namespace TallComponents.PDF.Shapes
Class PageShape

Create a new page shape.


public PageShape(Page pageDouble leftDouble bottomDouble widthDouble heightBoolean keepAspectRatioDouble rotationPageBoundary pageBoundary)


Page page
The existing page that will be rendered inside this page shape.

Double left
The horizontal position of the left edge of this page shape.

Double bottom
The vertical position of the bottom edge of this page shape.

Double width
The width of this page shape.

Double height
The height of this page shape.

Boolean keepAspectRatio
The width/height ratio is equal to the ratio of the original page.

Double rotation
The rotation the page shape clockwise (360 corresponds to a full circle).

PageBoundary pageBoundary
This shape has the contents from the specified page boundary. If the page does not have the specified page boundary, then it will be automatically using the following fallback: ArtBox --> CropBox; TrimBox --> CropBox; BleedBox --> CropBox; CropBox --> MediaBox.
Download PDFKit.NET 4.0
We will send you a download link
  • This field is for validation purposes and should be left unchanged.
Why do we ask your email address?
We send tips that speed up your evaluation
We let you know about bug fixes
You can always unsubscribe with one click
We never share your address with a 3rd party
Thank you for your download

We have sent an email with a download link.