Namespace TallComponents.PDF.Layout.Shapes
Class PageShape
A page shape is a placeholder for an existing page. It is used to stamp existing pages on an other page, which could be either a new or an existing page.
Placing a page using the PageShape removes all interactive features such as links and form fields.
Syntax
public class PageShape : ContentShape
Constructors
PageShape()
Create a new page shape. Use Path, Password and PageIndex to specify what page to use.
PageShape(Stream,Int32,String)
Create a new PageShape from a PDF document in a stream with the original size of the page.
PageShape(Stream,Int32,String,Double,Double,Double,Double,Boolean,Int32,PageBoundary)
Create a new page shape. Using the specified page boundary.
PageShape(String,Int32,String)
Create a new PageShape from a file with the original size of the page.
PageShape(String,Int32,String,Double,Double,Double,Double,Boolean,Int32,PageBoundary)
Create a new page shape. Using the specified page boundary.
Properties
Double Height
The height of this page shape in points.
Boolean KeepAspectRatio
If KeepAspectRatio is set to true, the size is calculated from the
width and height so that the width/height ratio is equal to the ratio
of the original page. If set to false, the specified.
width and height are used and the page will in general appear distorted.
PageBoundary PageBoundary
Specifies which page boundary corresponds to this page shape, the space outside the specified boundary will be clipped.
Int32 PageCount
The number of pages in the source PDF document.
Int32 PageIndex
Orientation PageOrientation
The orienation or rotation specified on the Page this PageShape refers.
String Path
Path of the PDF file to load.
Boolean PreserveFields
Preserve fields from the source page. Because annotations, and thus widgets, cannot be geometrically transformed in the same way that
shapes can, you should not transform the PageShape when you set PreserveFields to true. Default is false.
Int32 Rotate
Number of degrees by which this page shape is rotated counter-clockwise around its lower-left corner.
Double SkewX
Amount of horizontal skew in degrees, clockwise. (default = 0)
Double SkewY
Amount of vertical skew in degrees, clockwise. (default = 0)
Double Width
The width of this page shape in points.
Void Password