PdfPageEditor Class
Represents a class to edit the PDF file's page, including rotating page, zooming page, moving position and changing page size.
Inheritance Hierarchy

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public sealed class PdfPageEditor : SaveableFacade

The PdfPageEditor type exposes the following members.

Constructors
  NameDescription
Public methodPdfPageEditor
Constructor for PdfPageEditor class.
Public methodPdfPageEditor(Document)
Constructor for PdfPageEditor class.
Properties
  NameDescription
Public propertyAlignment Obsolete.
Gets or sets the horizontal alignment of the original PDF content on the result page, default is AlignmentType.Left.
Public propertyDisplayDuration
Gets or sets display duration for pages.
Public propertyDocument
Gets the document facade is working on.
(Inherited from Facade.)
Public propertyHorizontalAlignment
Gets or sets the horizontal alignment of the original PDF content on the result page, default is AlignmentType.Left.
Public propertyPageRotations
A hashtable contains the page number and rotation degree, the key represents the page number, the value of key represents the rotation in degrees.
Public propertyPageSize
Gets or sets the output file's page size.
Public propertyProcessPages
Gets or sets the page numbers to be edited. By default, each page would be edited.
Public propertyRotation
Gets or sets the rotation of the pages, the rotation must be 0, 90, 180 or 270. Default value is 0.
Public propertyTransitionDuration
Gets or sets duration of the transition effect.
Public propertyTransitionType
Gets or sets transition style to use when moving to this page from another during a presentation.
Public propertyVerticalAlignment Obsolete.
Gets or Sets the vertical alignment of the original PDF content on the result page, default is VerticalAlignmentType.Bottom.
Public propertyVerticalAlignmentType
Gets or Sets the vertical alignment of the original PDF content on the result page, default is VerticalAlignmentType.Bottom.
Public propertyCode exampleZoom
Get or sets zoom coefficient. Value 1.0 corresponds to 100%. Default value is 1.0.
Examples
The following example demonstrates how to change zoom of the document pages.
C#
PdfPageEditor editor = new PdfPageEditor();
editor.BindPdf("sample.pdf");
editor.Zoom = 0.5f;
Methods
  NameDescription
Public methodApplyChanges
Apply changes made to the document pages.
Public methodBindPdf(Stream)
Initializes the facade.
(Inherited from Facade.)
Public methodBindPdf(String)
Initializes the facade.
(Inherited from Facade.)
Public methodBindPdf(Document)
Initializes the facade.
(Inherited from Facade.)
Public methodClose
Disposes Aspose.Pdf.Document bound with a facade.
(Inherited from Facade.)
Public methodDispose
Disposes the facade.
(Inherited from Facade.)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodCode exampleGetPageBoxSize
Returns size of specified box in document.
Public methodCode exampleGetPageRotation
Returns the rotation of specified page.
Public methodCode exampleGetPages
Returns total number of pages.
Public methodCode exampleGetPageSize
Returns the page size of the specified page.
Public methodGetType (Inherited from Object.)
Public methodCode exampleMovePosition
Moves the origin from (0, 0) to the point that appointted. The origin is left-bottom and the unit is point(1 inch = 72 points).
Public methodCode exampleSave(Stream)
Saves changed document into stream.
(Overrides SaveableFacadeSave(Stream).)
Public methodCode exampleSave(String)
Saves changed document into file.
(Overrides SaveableFacadeSave(String).)
Public methodToString (Inherited from Object.)
Fields
  NameDescription
Public fieldStatic memberBLINDH
Vertical Blinds
Public fieldStatic memberBLINDV
Vertical Blinds
Public fieldStatic memberBTWIPE
Bottom-Top Wipe
Public fieldStatic memberDGLITTER
Diagonal Glitter
Public fieldStatic memberDISSOLVE
The old page dissolves
Public fieldStatic memberINBOX
Inward Box
Public fieldStatic memberLRGLITTER
Left-Right Glitter
Public fieldStatic memberLRWIPE
Left-Right Wipe
Public fieldStatic memberOUTBOX
Outward Box
Public fieldStatic memberRLWIPE
Right-Left Wipe
Public fieldStatic memberSPLITHIN
IN Horizontal Split
Public fieldStatic memberSPLITHOUT
Out Horizontal Split
Public fieldStatic memberSPLITVIN
In Vertical Split
Public fieldStatic memberSPLITVOUT
Out Vertical Split
Public fieldStatic memberTBGLITTER
Top-Bottom Glitter
Public fieldStatic memberTBWIPE
Top-Bottom Wipe
See Also