PDFVisualPage¶
Namespace: O2S.Components.PDF4NET.View
Represents a PDF page displayed in a viewer.
Inheritance Object → PDFVisualPage
Remarks
Visual pages cannot be shared between PDFVisualDocument objects. Adding a PDFVisualPage object to multiple PDFVisualDocument.Pages collections leads to undefined results.
Constructors¶
PDFVisualPage(PDFPage)¶
Initializes a new PDFVisualPage object.
Parameters
page PDFPage
The source .
Properties¶
CropBox¶
Gets or sets the crop box.
Property Value
PDFStandardRectangle
A , expressed in default user space units,
defining the visible region of default user space.
MediaBox¶
Gets or sets the media box.
Property Value
PDFStandardRectangle
A , expressed in default user space units,
defining the boundaries of the physical medium on which the page is intended to be
displayed or printed.
Page¶
Gets the associated with this visual page.
Property Value
PDFPage
The associated with this visual page.
Rotation¶
Gets or sets the rotation angle.
Property Value
Int32
The number of degrees by which the page should be rotated clockwise when displayed or printed.
Exceptions
ArgumentOutOfRangeException
Thrown when the value being set is not one of the accepted values.
Remarks
The accepted values for this property are 0, 90, 180 and 270 degrees.
VisualAnnotations¶
Gets the list of visual annotations included in the page.
Property Value
PDFVisualAnnotationCollection
A collection of PDFVisualAnnotation objects representing the annotations displayed in the control.
VisualFields¶
Gets the list of visual fields included in the page.
Property Value
PDFVisualFieldCollection
A collection of PDFVisualField objects representing the fields displayed in the control.
Methods¶
RefreshContent()¶
Reparses and displays the page after the underlying page content stream has changed.
Remarks
Call this method to update the page in the viewer after performing changes on the page content using non-visual methods.
Note: It is not recommended to modify the page content while the page is in process of being displayed in the viewer. Please wait for
the or events to be fired before making changes.