Skip to content

PDFVisualPage

Namespace: O2S.Components.PDF4NET.View

Represents a PDF page displayed in a viewer.

public class PDFVisualPage

Inheritance ObjectPDFVisualPage

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.

public PDFVisualPage(PDFPage page)

Parameters

page PDFPage
The source .


Properties

CropBox

Gets or sets the crop box.

public PDFStandardRectangle CropBox { get; set; }

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.

public PDFStandardRectangle MediaBox { get; set; }

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.

public PDFPage Page { get; }

Property Value

PDFPage
The associated with this visual page.


Rotation

Gets or sets the rotation angle.

public int Rotation { get; set; }

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.

public PDFVisualAnnotationCollection VisualAnnotations { get; }

Property Value

PDFVisualAnnotationCollection
A collection of PDFVisualAnnotation objects representing the annotations displayed in the PDFDocumentView control.


VisualFields

Gets the list of visual fields included in the page.

public PDFVisualFieldCollection VisualFields { get; }

Property Value

PDFVisualFieldCollection
A collection of PDFVisualField objects representing the fields displayed in the PDFDocumentView control.


Methods

RefreshContent()

Reparses and displays the page after the underlying page content stream has changed.

public void RefreshContent()

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 PDFDocumentView.PageRenderingCompleted or PDFDocumentView.PageRenderingCancelled events to be fired before making changes.