Page Class
Class representing page of PDF document.
Inheritance Hierarchy
SystemObject
  Aspose.PdfPage

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.5
Syntax
public sealed class Page : IDisposable

The Page type exposes the following members.

Properties
  NameDescription
Public propertyActions
Gets collection of page properties.
Public propertyAnnotations
Gets collection of page annotations. Annotations
Public propertyCode exampleArtBox
Gets or sets art box of the page.
Public propertyArtifacts
Gets collection of artifacts on the page.
Public propertyBackground
Gets or sets the background color of the page.
Public propertyBackgroundImage
Gets or sets background image for page (for generator only).
Public propertyCode exampleBleedBox
Gets or sets bleed box of the page.
Public propertyColorType
Sets color type of the pages based on information getting from operators SetColor, images and forms.
Public propertyCode exampleContents
Gets collection of operators in the content stream of the page. OperatorCollection
Public propertyCode exampleCropBox
Gets or sets crop box of the page.
Public propertyCode exampleDuration
Gets of set page display duration. This is time in seconds that page shall be displayed during presentation. Returs -1 if duration is not defined.
Public propertyFieldsInTabOrder
Gets list of Field object in Tab order on this page.
Public propertyFooter
Gets or sets page footer.
Public propertyGroup
Gets or sets a group attributes class specifying the attributes of the page�s page group for use in the transparent imaging model.
Public propertyHeader
Gets or sets page header.
Public propertyLayers
Gets or sets layers collection.
Public propertyCode exampleMediaBox
Gets or sets media box of the page.
Public propertyNoteLineStyle
Gets or sets the line style for notes.(for generator only)
Public propertyNumber
Get number of the page.
Public propertyPageInfo
Gets or sets the page info.(for generator only)
Public propertyParagraphs
Gets the paragraphs.
Public propertyCode exampleRect
Gets or sets rectangle of the page. Page crop box is returned if specified, otherwise page media box is returned. Please note that this property don't consider page rotation. To get page rectangle considering rotation please use ActualRect.
Public propertyCode exampleResources
Gets page resources. Resources object contains collections of images, forms and fonts. Resources
Public propertyCode exampleRotate
Gets or sets rotation of the page.
Public propertyRotationMatrix
Gets transofmation matrix for the page.
Public propertyTabOrder
Gets or sets tab order of the page. Possible values: Row, Column. Default, Manual
Public propertyTocInfo
Gets or sets table of contents info.
Public propertyCode exampleTrimBox
Gets or sets trim box of the page.
Public propertyWatermark
Gets or sets the watermark of the page.
Methods
  NameDescription
Public methodAccept(AnnotationSelector)
Accepts AnnotationSelector visitor object that provides functionality to work with annotations.
Public methodAccept(ImagePlacementAbsorber)
Accepts ImagePlacementAbsorber visitor object that provides functionality to work with image placement objects.
Public methodAccept(TextAbsorber)
Accepts TextAbsorber visitor object that provides functionality to work with text objects.
Public methodAccept(TextFragmentAbsorber)
Accepts TextFragmentAbsorber visitor object that provides functionality to work with text objects.
Public methodAddImage(Stream, Rectangle)
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion.
Public methodAddImage(String, Rectangle)
Adds image onto the page and locates it in the middle of specified rectangle saving image's proportion.
Public methodAddImage(String, Stream, Rectangle)
Adds searchable image onto the page and locates it in the middle of specified rectangle saving image's proportion.
Public methodAddImage(Stream, Rectangle, Int32, Int32, Boolean)
Adds image on page and places it depend on image rectangle position.
Public methodAddStamp
Put stamp into page. Stamp can be page number, image or simple text, e.g. some logo.
Public methodAsByteArray
Converts current page as bitmap and than returns array of bytes.
Public methodAsXml
Converts current page as xml in utf8 encoding.
Public methodCalculateContentBBox
Calculates bbox value - rectangle containing contents without visible margins.
Public methodConvertToPNGMemoryStream
Public methodDispose
Frees up memory
Public methodEquals (Inherited from Object.)
Public methodFlatten
Removes all fields located on the page and place their values instead.
Public methodFreeMemory
Clears cached data
Public methodGetHashCode (Inherited from Object.)
Public methodGetNotifications
Returns notifications about inside operations with page content. (Only notifications about paragraph events in text adding scenarios are supported now.)
Public methodGetPageRect
Returns rectangle of the page.
Public methodGetType (Inherited from Object.)
Public methodStatic memberIntToRotation
Translates integer value into corresponding rotation enumeration member.
Public methodIsBlank
Gets the flag whether page is blank or not.
Public methodMakeGrayscale
Converts images on page as grayscaled.
Public methodStatic memberRotationToInt
Translates rotation enumeration member into integer value.
Public methodSendTo(PageDevice, Stream)
Sends page to process with given page device.
Public methodSendTo(PageDevice, String)
Sends page to process with given page device.
Public methodSetPageSize
Sets page size for page.
Public methodToString (Inherited from Object.)
Events
  NameDescription
Public eventOnBeforePageGenerate
Event for customize header and footer.
See Also