PdfEditor Class

Allows editing of existing PDF documents by adding HTML content, setting metadata, applying security options, and digital signatures. Use Save or SaveToFile(String) to generate the final PDF and release resources

Definition

Namespace: Winnovative.Pdf.Chromium
Assembly: Winnovative.Pdf.Chromium (in Winnovative.Pdf.Chromium.dll) Version: 19.5.0
C#
public class PdfEditor : IDisposable
Inheritance
Object    PdfEditor
Implements
IDisposable

Constructors

PdfEditor(Byte, String) Creates an editor for a PDF from a memory buffer
PdfEditor(String, String) Creates an editor for a PDF from a file

Properties

DigitalSignature The digital signature to apply to generated PDF document
FlattenPdf A flag indicating if the output PDF is flattened. The default value is false
PdfDocumentInfo Gets or sets the metadata (title, author, etc.) to apply to the output PDF
PdfDocumentReadInfo Gets the document metadata as read from the original input PDF
PdfSecurityInfo Gets the security information extracted from the loaded PDF (permissions, encryption, etc.)
PdfSecurityOptions Gets or sets the security options (passwords, permissions) to apply to the output PDF
PdfViewerPreferences Gets or sets the viewer preferences to apply to the generated PDF
PdfViewerPreferencesInfo Gets the viewer preferences extracted from the loaded PDF

Methods

AddHtmlTemplate(Int32, Int32, Int32, String) Creates a HTML Template object based on the HTML string and an optional base URL. The height of template is auto-resized. To create a template with fixed height use the method with height parameter
AddHtmlTemplate(Int32, Int32, Int32, Int32, String) Creates a HTML Template object based on URL from which the HTML content should be retrieved. The height of template is fixed. If AutoResizeHeight is true, the HTML content may be scaled down to fit the specified height
AddHtmlTemplate(Int32, Int32, Int32, String, String) Creates a HTML Template object to be rendered in PDF pages based on the HTML string and an optional base URL. The height of template is auto-resized. To create a template with fixed height use the method with height parameter
AddHtmlTemplate(Int32, Int32, Int32, Int32, String, String) Creates a HTML Template object to be rendered in PDF pages based on the HTML string and an optional base URL. The height of template is fixed. If AutoResizeHeight is true, the HTML content may be scaled down to fit the specified height
AddHtmlTemplate(Int32, Int32, Int32, PdfTemplateHorizontalAlign, PdfTemplateVerticalAlign, String) Creates a HTML Template object based on the HTML string and an optional base URL. Specifies the horizontal and the vertical alignment of the template on the PDF page. The alignment takes precedence over the X and Y coordinates when set to a value other than None. The height of template is auto-resized. To create a template with fixed height use the method with height parameter
AddHtmlTemplate(Int32, Int32, Int32, Int32, PdfTemplateHorizontalAlign, PdfTemplateVerticalAlign, String) Creates a HTML Template object based on URL from which the HTML content should be retrieved. Specifies the horizontal and the vertical alignment of the template on the PDF page. The alignment takes precedence over the X and Y coordinates when set to a value other than None. The height of template is fixed. If AutoResizeHeight is true, the HTML content may be scaled down to fit the specified height
AddHtmlTemplate(Int32, Int32, Int32, PdfTemplateHorizontalAlign, PdfTemplateVerticalAlign, String, String) Creates a HTML Template object to be rendered in PDF pages based on the HTML string and an optional base URL. Specifies the horizontal and the vertical alignment of the template on the PDF page. The alignment takes precedence over the X and Y coordinates when set to a value other than None. The height of template is auto-resized. To create a template with fixed height use the method with height parameter
AddHtmlTemplate(Int32, Int32, Int32, Int32, PdfTemplateHorizontalAlign, PdfTemplateVerticalAlign, String, String) Creates a HTML Template object to be rendered in PDF pages based on the HTML string and an optional base URL. Specifies the horizontal and the vertical alignment of the template on the PDF page. The alignment takes precedence over the X and Y coordinates when set to a value other than None. The height of template is fixed. If AutoResizeHeight is true, the HTML content may be scaled down to fit the specified height.
AddImage Adds an image element to the current PDF page. Supports byte array or file path images, scaling and alignment
AddPdfTemplate Creates a blank PDF Template object with the specified position and size in the PDF page. Specifies the horizontal and vertical alignment of the template on the page. The alignment takes precedence over the X and Y coordinates when set to a value other than None. The template can later be filled with custom content such as text, images or graphics
AddRectangle Adds a rectangle to a specified page in the existing PDF document
AddText Adds a text element to the current PDF page. If the text exceeds the current page, it will continue on subsequent pages based on element settings
Dispose Releases all resources used by this instance
Dispose(Boolean) Performs the actual resource cleanup
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetPageCount Gets the number of pages in the loaded PDF document
GetPdfPageInfo Gets detailed information about a specific page in the loaded PDF document.
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
Save Saves the edited PDF to a memory buffer and releases all resources
SaveToFile Saves the edited PDF to a file and releases all resources
ToString
(Inherited from Object)

See Also