Create a new page shape. Using the specified page boundary.
Namespace: TallComponents.PDF.Layout.ShapesAssembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.63.0
Syntax
| C# |
|---|
public PageShape( string path, int pageIndex, string password, double left, double bottom, double width, double height, bool keepAspectRatio, int rotate, PageBoundary pageBoundary ) |
| Visual Basic |
|---|
Public Sub New ( _ path As String, _ pageIndex As Integer, _ password As String, _ left As Double, _ bottom As Double, _ width As Double, _ height As Double, _ keepAspectRatio As Boolean, _ rotate As Integer, _ pageBoundary As PageBoundary _ ) |
Parameters
- path
- Type: System..::..String
The PDF Document.
- pageIndex
- Type: System..::..Int32
Zero based page index.
- password
- Type: System..::..String
The password needed to open the given PDF.
- left
- Type: System..::..Double
The horizontal position of the left edge of this page shape.
- bottom
- Type: System..::..Double
The vertical position of the bottom edge of this page shape.
- width
- Type: System..::..Double
The width of this page shape.
- height
- Type: System..::..Double
The height of this page shape.
- keepAspectRatio
- Type: System..::..Boolean
The width/height ratio is equal to the ratio of the original page.
- rotate
- Type: System..::..Int32
The rotation the page shape counter-clockwise (360 corresponds to a full circle).
- pageBoundary
- Type: TallComponents.PDF.Layout..::..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.
Remarks
Loading PDF documents from a URL is currently not supported. You can use
relative paths in a web environment (for example ~/documents/mydoc.pdf)