Represents a page in a PDF document.
Inheritance Hierarchy
PdfEdit.PdfPdfItem
PdfEdit.PdfPdfObject
PdfEdit.PdfPdfDictionary
PdfEdit.PdfPdfPage
Namespace: PdfEdit.Pdf
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.2.1.0 (5.2.1.0)
Syntax
The PdfPage type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PdfPage |
Initializes a new page. The page must be added to a document before it can be used.
Depending of the IsMetric property of the current region the page size is set to
A4 or Letter respectively. If this size is not appropriate it should be changed before
any drawing operations are performed on the page.
| |
PdfPage(PdfDocument) |
Initializes a new instance of the PdfPage class.
|
Methods
Name | Description | |
---|---|---|
AddDocumentLink |
Adds an intra document link.
| |
AddFileLink |
Adds a link to a file.
| |
AddWebLink |
Adds a link to the Web.
| |
Clone |
Creates a copy of this dictionary. Direct values are deep copied. Indirect references are not
modified.
(Inherited from PdfDictionary.) | |
Close |
Closes the page. A closes page cannot be modified anymore and it is not possible to
get an XGraphics object for a closed page. Closing a page is not required, but may saves
resources if the document has many pages.
| |
CreateStream |
Creates the stream of this dictionary and initializes it with the specified byte array.
The function must not be called if the dictionary already has a stream.
(Inherited from PdfDictionary.) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the dictionary elements.
(Inherited from PdfDictionary.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SwapWidthAndHeight | ||
ToString |
Returns a string with the content of this object in a readable form. Useful for debugging purposes only.
(Inherited from PdfDictionary.) |
Fields
Name | Description | |
---|---|---|
ForceFilters |
List of filters which will be applied on the PdfDictionary stream.
(Inherited from PdfDictionary.) |
Properties
Name | Description | |
---|---|---|
Annotations |
Gets the annotations array of this page.
| |
ArtBox |
Gets or sets the art box.
| |
BleedBox |
Gets or sets the bleed box.
| |
Contents |
Gets the array of content streams of the page.
| |
CropBox |
Gets or sets the crop box.
| |
CustomValues |
Gets or sets the custom values.
| |
DisplayedHeight |
Gets or sets the displayed height of the page. If orientation is Landscape, this function applies to
the width.
| |
DisplayedWidth |
Gets the displayed width of the page. If orientation is Landscape, this function applies to
the height.
| |
Elements |
Gets the dictionary containing the elements of this dictionary.
(Inherited from PdfDictionary.) | |
Height |
Gets or sets the height of the page. If orientation is Landscape, this function applies to
the width.
| |
Internals |
Gets the PdfInternals object of this document, that grants access to some internal structures
which are not part of the public interface of PdfDocument.
(Inherited from PdfObject.) | |
IsIndirect |
Indicates whether the object is an indirect object.
(Inherited from PdfObject.) | |
MediaBox |
Gets or sets the media box directly. XGrahics is not prepared to work with a media box
with an origin other than (0,0).
| |
Orientation |
Gets or sets the orientation of the page. The default value PageOrientation.Portrait.
If an imported page has a /Rotate value that matches the formula 90 + n * 180 the
orientation is set to PageOrientation.Landscape.
| |
Owner |
Gets the PdfDocument this object belongs to.
(Inherited from PdfObject.) | |
Reference |
Gets the indirect reference of this object. If the value is null, this object is a direct object.
(Inherited from PdfObject.) | |
Resources |
Gets the PdfResources object of this page.
| |
Rotate |
Gets or sets the /Rotate entry of the PDF page. The value is the number of degrees by which the page
should be rotated clockwise when displayed or printed. The value must be a multiple of 90.
TODO: Next statement is not correct:
PDFEdit does not set this value, but for imported pages this value can be set and must be taken
into account when adding graphic to such a page.
| |
Size |
Gets or sets one of the predefined standard sizes like.
| |
Stream |
Gets or sets the PDF stream belonging to this dictionary. Returns null if the dictionary has
no stream. To create the stream, call the CreateStream function.
(Inherited from PdfDictionary.) | |
Tag |
Gets or sets a user defined object that contains arbitrary information associated with this PDF page.
The tag is not used by PDFEdit.
| |
TrimBox |
Gets or sets the trim box.
| |
TrimMargins |
Gets or sets the trim margins.
| |
Width |
Gets the displayed width of the page. If orientation is Landscape, this function applies to
the height.
|
See Also