PdfFileMend

PdfFileMend class

Represents a class for adding texts and images on the pages of existing PDF document.

The PdfFileMend type exposes the following members:

Constructors

NameDescription
PdfFileMend()Constructor.
PdfFileMend(input_file_name, output_file_name)Initializes a new instance of the PdfFileMend class
PdfFileMend(input_stream, output_stream)Initializes a new instance of the PdfFileMend class
PdfFileMend(document)Initializes a new instance of the PdfFileMend class
PdfFileMend(document, output_file_name)Initializes a new instance of the PdfFileMend class
PdfFileMend(document, dest_stream)Initializes a new instance of the PdfFileMend class

Properties

NameDescription
documentGets the document facade is working on.
input_streamSets the input stream.
output_streamSets the output stream.
input_fileSets the input file.
output_fileSets the output file.
wrap_modeSets or gets word wrapping algorithm. See WordWrapMode and IsWordWrap.
text_positioning_modeSets or gets text positioning strategy. PositioningMode
Default mode is Legacy.

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(dest_file)Saves the PDF document to the specified file.
save(dest_stream)Saves the PDF document to the specified stream.
add_image(image_stream, page_num, lower_left_x, lower_left_y, upper_right_x, upper_right_y)Adds image to the specified page of PDF document at specified coordinates.
add_image(image_stream, page_num, lower_left_x, lower_left_y, upper_right_x, upper_right_y, compositing_parameters)Adds image to the specified page of PDF document at specified coordinates.
add_image(image_stream, page_nums, lower_left_x, lower_left_y, upper_right_x, upper_right_y)Adds image to the specified pages of PDF document at specified coordinates.
add_image(image_stream, page_nums, lower_left_x, lower_left_y, upper_right_x, upper_right_y, compositing_parameters)Adds image to the specified pages of PDF document at specified coordinates.
add_image(image_name, page_num, lower_left_x, lower_left_y, upper_right_x, upper_right_y)Adds image to the specified page of PDF document at specified coordinates.
add_image(image_name, page_num, lower_left_x, lower_left_y, upper_right_x, upper_right_y, compositing_parameters)Adds image to the specified page of PDF document at specified coordinates.
add_image(image_name, page_nums, lower_left_x, lower_left_y, upper_right_x, upper_right_y)Adds image to the specified pages of PDF document at specified coordinates.
add_image(image_name, page_nums, lower_left_x, lower_left_y, upper_right_x, upper_right_y, compositing_parameters)Adds image to the specified pages of PDF document at specified coordinates.
add_text(text, page_num, lower_left_x, lower_left_y)Not implemented.
add_text(text, page_num, lower_left_x, lower_left_y, upper_right_x, upper_right_y)Not implemented.
add_text(text, page_nums, lower_left_x, lower_left_y, upper_right_x, upper_right_y)Not implemented.
close()Closes PdfFileMend object.

See Also