Constructor PageShape

Namespace TallComponents.PDF.Layout.Shapes
Class PageShape

Create a new page shape. Using the specified page boundary.

Syntax

public  PageShape( Stream  stream Int32  pageIndex String  password Double  left Double  bottom Double  width Double  height Boolean  keepAspectRatio Int32  rotate PageBoundary  pageBoundary )

Parameters


Stream stream
The PDF Document.

Int32 pageIndex
Zero based page index.

String password
The password needed to open the given PDF.

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.

Int32 rotate
The rotation the page shape counter-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.

The

may be closed when the constructor completes. It is the responsibility of the client to close the stream.