PdfPageEditor

PdfPageEditor class

Represents a class to edit the PDF file’s page, including rotating page, zooming page, moving position and changing page size.

The PdfPageEditor type exposes the following members:

Constructors

NameDescription
PdfPageEditor()Constructor for PdfPageEditor class.
PdfPageEditor(document)Initializes a new instance of the PdfPageEditor class

Properties

NameDescription
documentGets the document facade is working on.
transition_durationGets or sets duration of the transition effect.
transition_typeGets or sets transition style to use when moving to this page from another during a presentation.
display_durationGets or sets display duration for pages.
process_pagesGets or sets the page numbers to be edited. By default, each page would be edited.
rotationGets or sets the rotation of the pages, the rotation must be 0, 90, 180 or 270.
Default value is 0.
zoomGet or sets zoom coefficient. Value 1.0 corresponds to 100%.
Default value is 1.0.
page_sizeGets or sets the output file’s page size.
alignmentGets or sets the horizontal alignment of the original PDF content on the result page, default is AlignmentType.Left.
horizontal_alignmentGets or sets the horizontal alignment of the original PDF content on the result page, default is AlignmentType.Left.
vertical_alignmentGets or Sets the vertical alignment of the original PDF content on the result page, default is VerticalAlignmentType.Bottom.
vertical_alignment_typeGets or Sets the vertical alignment of the original PDF content on the result page, default is VerticalAlignmentType.Bottom.
SPLITVOUTOut Vertical Split
SPLITHOUTOut Horizontal Split
SPLITVINIn Vertical Split
SPLITHININ Horizontal Split
BLINDVVertical Blinds
BLINDHVertical Blinds
INBOXInward Box
OUTBOXOutward Box
LRWIPELeft-Right Wipe
RLWIPERight-Left Wipe
BTWIPEBottom-Top Wipe
TBWIPETop-Bottom Wipe
DISSOLVEThe old page dissolves
LRGLITTERLeft-Right Glitter
TBGLITTERTop-Bottom Glitter
DGLITTERDiagonal Glitter

Methods

NameDescription
bind_pdf(src_file)Binds PDF document for editing.
bind_pdf(src_stream)Binds PDF document for editing.
bind_pdf(src_doc)Binds PDF document for editing.
save(output_file)Saves changed document into file.
save(output_stream)Saves changed document into stream.
close()Releases any resources associates with the current facade.
move_position(move_x, move_y)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).
get_pages()Returns total number of pages.
get_page_size(page)Returns the page size of the specified page.
get_page_rotation(page)Returns the rotation of specified page.
get_page_box_size(page, page_box_name)Returns size of specified box in document.
apply_changes()Apply changes made to the document pages.

See Also