Interface IPdfPage
PDF document page interface
Namespace: IronPdf.Pages
Assembly: IronPdf.dll
Syntax
public interface IPdfPage : IDocumentPage<IPdfPageObjectModel>, IPageContainer
Properties
Characters
A collection of all characters on this page and their position
Also see Text
Declaration
IDocumentCharCollection Characters { get; }
Property Value
Type | Description |
---|---|
Iron |
Lines
A collection of all lines of text on this page and their position
Declaration
IPdfTextObjectCollection Lines { get; }
Property Value
Type | Description |
---|---|
IPdf |
Remarks
Derived from Text
PageRotation
Gets the page orientation.
Declaration
PdfPageRotation PageRotation { get; }
Property Value
Type | Description |
---|---|
Pdf |
PrintHeight
Gets the height of the pdf page in printer points.
Declaration
double PrintHeight { get; }
Property Value
Type | Description |
---|---|
System. |
PrintWidth
Gets the width of the pdf page in printer points.
Declaration
double PrintWidth { get; }
Property Value
Type | Description |
---|---|
System. |
Text
Page text
Declaration
string Text { get; }
Property Value
Type | Description |
---|---|
System. |
TextChunks
A collection of all text objects on this page and their position
The contents of each text object is rendered as a single unit
The contents of each text object share font, origin position, etc.
Also see Characters and Lines
Declaration
IPdfTextObjectCollection TextChunks { get; }
Property Value
Type | Description |
---|---|
IPdf |
Methods
Extend(Double, Double, Double, Double, MeasurementUnit)
Extends this page bounds using the specified parameters (in millimeters)
Does not resize page content; results in an empty margin around existing page content
Declaration
void Extend(double ExtendLeft, double ExtendRight, double ExtendTop, double ExtendBottom, MeasurementUnit Units)
Parameters
Type | Name | Description |
---|---|---|
System. |
ExtendLeft | Desired amount (mm) to extend page width towards the left |
System. |
ExtendRight | Desired amount (mm) to extend page width towards the right |
System. |
ExtendTop | Desired amount (mm) to extend page height towards the top |
System. |
ExtendBottom | Desired amount (mm) to extend page height towards the bottom |
Measurement |
Units | Optionally specify units of measurement for input parameters |
Resize(Double, Double, MeasurementUnit)
Resize this page to the specified dimensions (in millimeters)
Declaration
void Resize(double PageWidth, double PageHeight, MeasurementUnit Units)
Parameters
Type | Name | Description |
---|---|---|
System. |
PageWidth | Desired page width, in millimeters |
System. |
PageHeight | Desired page height, in millimeters |
Measurement |
Units | Optionally specify units of measurement for input parameters |
Transform(Double, Double, Double, Double)
Transforms this page contents using the specified parameters
Affects the appearance of all content displayed on the page. Does NOT affect the physical page dimensions.
Declaration
void Transform(double MoveX, double MoveY, double ScaleX, double ScaleY)
Parameters
Type | Name | Description |
---|---|---|
System. |
MoveX | Move the page contents left (negative) or right (positive), in millimeters |
System. |
MoveY | Move the page contents down (negative) or up (positive), in millimeters |
System. |
ScaleX | Scale the page contents horizontally (0.0 to infinity, where 1.0 is default scaling) |
System. |
ScaleY | Scale the page contents vertically (0.0 to infinity, where 1.0 is default scaling) |