.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfDocumentProcessor Members

A non-visual component that allows you to generate PDF files from scratch and manipulate existing documents.

Constructors

Name Description
PdfDocumentProcessor() Initializes a new instance of the PdfDocumentProcessor class with default settings.

Properties

Name Description
Document Provides access to a PdfDocument class, which represents the current document.
DocumentFacade Retrieves a document facade - a set of methods used to perform various operations on PDF document without access to its inner structure.
ImageCacheSize Specifies the size of the image cache (in megabytes).
MaxPrintingDpi Specifies the maximum value of the PdfPrinterSettings.PrintingDpi property.
PasswordAttemptsLimit Specifies the maximum number of allowed attempts to enter the PDF file’s security password.
RenderingEngine Specifies the engine used to render page content.
RenderPageContentWithDirectX Gets or sets whether to render page content with DirectX.
ShowImagePlaceholder Obsolete. Gets or sets a value which indicates whether to show placeholders for images in unsupported image formats.
Text Provides access to the PDF text.

Methods

Name Description
AddFormFields(PdfAcroFormField[]) Adds interactive form fields to a PDF document.
AddFormFields(IEnumerable<PdfAcroFormField>) Adds interactive form fields to a PDF document.
AddNewPage(PdfRectangle) Adds an empty page with the specified page size to the current document.
AddTextAnnotation(Int32, PdfPoint) Adds a text annotation at the specified point on the page.
AddTextAnnotation(Int32, PdfRectangle) Adds a text annotation to the specified area on the page.
AddTextMarkupAnnotation(PdfDocumentArea, PdfTextMarkupAnnotationType) Creates a text markup annotation for the text located in the specified page area.
AddTextMarkupAnnotation(PdfDocumentPosition, PdfDocumentPosition, PdfTextMarkupAnnotationType) Creates a text markup annotation for text located between the specified positions on the page.
AddTextMarkupAnnotation(Int32, PdfOrientedRectangle, PdfTextMarkupAnnotationType) Creates a text markup annotation at the specified page area.
AddTextMarkupAnnotation(Int32, PdfRectangle, PdfTextMarkupAnnotationType) Creates a text markup annotation for the text located in the specified page rectangle.
AddTextMarkupAnnotation(Int32, IEnumerable<PdfOrientedRectangle>, PdfTextMarkupAnnotationType) Creates a text markup annotation at the specified area on the page.
AddTextMarkupAnnotation(Int32, IEnumerable<PdfQuadrilateral>, PdfTextMarkupAnnotationType) Creates a text markup annotation at the specified page area.
AppendDocument(Stream) Appends a PDF document located at the specified file stream to the end of the current document starting from the new page.
AppendDocument(String) Appends a PDF document located at the specified path to the end of the current document starting from the new page.
ApplyFormData(PdfFormData) Fills an interactive form with data.
AttachFile(PdfFileAttachment) Attaches a file to the PDF document.
CheckFormFieldNameCollisions(PdfAcroFormField[]) Checks interactive form fields to find a collision in the form field names.
CheckFormFieldNameCollisions(IEnumerable<PdfAcroFormField>) Checks interactive form fields to find a collision in the form field names.
CloseDocument() Closes the current document.
CreateBitmap(Int32, Int32) Exports a PDF page to a bitmap image.
CreateDestination(Int32) Creates a destination for targets in the document (e.g., bookmarks) using a page number.
CreateDestination(Int32, Single) Creates a destination for targets in the document (e.g., bookmarks) using a page number, and zoom factor.
CreateDestination(Int32, Single, Single) Creates a destination for targets in the document (e.g., bookmarks) using a page number, and page coordinates.
CreateDestination(Int32, Single, Single, Single) Creates a destination for targets in the document (e.g., bookmarks) using a page number, page coordinates, and zoom factor.
CreateDestination(Int32, Single, Single, Single, Single) Creates a destination for targets in the document (e.g., bookmarks) using a page number, page coordinates, and DPI.
CreateDestination(Int32, Single, Single, Single, Single, Single) Creates a destination for targets in the document (e.g., bookmarks) using a page number, page coordinates, DPI and zoom factor.
CreateEmptyDocument() Creates an empty PDF document with no pages.
CreateEmptyDocument(Stream) Creates an empty PDF document with no pages and writes it to a stream.
CreateEmptyDocument(Stream, PdfCreationOptions) Creates an empty PDF with no pages using a stream and PDF creation options.
CreateEmptyDocument(Stream, PdfSaveOptions) Creates an empty PDF document with no pages with specified save options (encryption and signature settings) and writes it to a stream.
CreateEmptyDocument(Stream, PdfSaveOptions, PdfCreationOptions) Creates an empty PDF document with no pages with specified save (encryption settings and a signature) and creation options, and writes it to a stream.
CreateEmptyDocument(String) Creates an empty PDF document with no pages using the file path.
CreateEmptyDocument(String, PdfCreationOptions) Creates an empty PDF document with no pages using the file path and PDF creation options.
CreateEmptyDocument(String, PdfSaveOptions) Creates an empty PDF document with no pages using the file path and PDF save options (containing encryption settings and a signature) that will be applied to the document when it is saved.
CreateEmptyDocument(String, PdfSaveOptions, PdfCreationOptions) Creates an empty PDF document with no pages using the file path, PDF save options (containing encryption settings and a signature) that will be applied to the document when it is saved, and PDF creation options.
CreateGraphics() Creates a new instance of the PdfGraphics used to draw graphics on a PDF document.
CreateTiff(Stream, IEnumerable<Int32>, Single) Exports a PDF document to a TIFF image using a stream, page numbers and predefined resolution.
CreateTiff(Stream, Int32) Exports a PDF document to a TIFF image using a stream, and the image’s largest edge length.
CreateTiff(Stream, Int32, IEnumerable<Int32>) Exports a PDF document to a TIFF image using a stream, the image’s largest edge length, and page numbers.
CreateTiff(String, IEnumerable<Int32>, Single) Exports a PDF document to a TIFF image using the image’s file path, page numbers and predefined resolution.
CreateTiff(String, Int32) Exports a PDF document to a TIFF image using the image’s file path, and the image’s largest edge length.
CreateTiff(String, Int32, IEnumerable<Int32>) Exports a PDF document to a TIFF image using the image’s file path, image’s largest edge length, and page numbers.
DeleteAttachment(PdfFileAttachment) Returns a value indicating if the attachment is deleted from a PDF document.
DeleteMarkupAnnotation(PdfMarkupAnnotationData) Deletes a markup annotation from a page.
DeleteMarkupAnnotations(IEnumerable<PdfMarkupAnnotationData>) Deletes markup annotations specified in the PdfMarkupAnnotationData collection.
DeletePage(Int32) Deletes the specified page from the current document.
DeletePages(IEnumerable<Int32>) Removes the specified pages from the document.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Export(Stream, PdfFormDataFormat) Exports interactive form data to the stream in the specified form data format.
Export(String, PdfFormDataFormat) Exports interactive form data to the file in the specified form data format.
FindText(String) Searches for the specified text in the current document with default parameters.
FindText(String, PdfTextSearchParameters) Searches for the specified text in the current document with the applied parameters.
FlattenForm() Flattens an entire interactive form.
FlattenFormField(String) Flattens a specific form field on an interactive form by its name.
GetFormData() Returns an object containing values of interactive form data fields.
GetFormFieldNames() Returns a list of interactive field names in a document.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetImages(PdfDocumentArea) Retrieves the images found within the specified document area.
GetImages(PdfDocumentArea, Single) Retrieves images found within the specified document area using image resolution.
GetImages(PdfDocumentPosition, PdfDocumentPosition) Retrieves the images found within the specified document positions.
GetImages(PdfDocumentPosition, PdfDocumentPosition, Single) Retrieves the images found within the specified document positions using image resolution.
GetMarkupAnnotationData(Int32) Retrieves all text markup annotations from a page in a PDF document.
GetPageText(Int32) Obtains text from the specified page.
GetPageText(Int32, PdfTextExtractionOptions) Obtains text from the specified page.
GetText() Retrieves the document content.
GetText(PdfDocumentArea) Retrieves the text found in the specified document area.
GetText(PdfDocumentArea, PdfTextExtractionOptions) Retrieves document content from the specified area with specified extraction options.
GetText(PdfDocumentPosition, PdfDocumentPosition) Retrieves the text located between the specified document positions.
GetText(PdfDocumentPosition, PdfDocumentPosition, PdfTextExtractionOptions) Retrieves document content located between the specified document positions with specified extraction options.
GetText(PdfTextExtractionOptions) Retrieves document content with specified extraction options.
GetType() Gets the Type of the current instance. Inherited from Object.
GetWord(PdfDocumentPosition) Returns a word at the specified document position.
Import(Stream) Imports interactive form data from the specified stream.
Import(Stream, PdfFormDataFormat) Imports interactive form data from the specified stream using the specified format.
Import(String) Imports interactive form data from the specified file.
Import(String, PdfFormDataFormat) Imports interactive form data from the specified file using the specified format.
InsertNewPage(Int32, PdfRectangle) Inserts a new page with a specified page number and page size into the document.
LoadDocument(Stream) Opens a PDF document from the specified stream.
LoadDocument(Stream, Boolean) Opens a PDF document from the specified stream using detach stream mode.
LoadDocument(String) Opens a PDF document from the specified file.
LoadDocument(String, Boolean) Opens a PDF document from the specified file using detach stream mode.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
NextWord() Returns the next word in a PDF document.
PrevWord() Returns the previous word in a PDF document.
Print(PdfPrinterSettings) Prints the document with custom printer settings.
Print(PrinterSettings) Obsolete. Obsolete. Prints the current document, using the specified settings.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RemoveForm() Removes all interactive form fields from a PDF document.
RemoveFormField(String) Removes an interactive form field from a document using the field name.
RenderNewPage(PdfRectangle, PdfGraphics) Adds a new page with specified page size and created graphics to a document.
RenderNewPage(PdfRectangle, PdfGraphics, Single, Single) Adds a new page with specified page size, DPI, and created graphics to a document.
ResetFormData() Resets all fields of the interactive form to their default values.
SaveDocument(Stream) Saves the current document to the specified file stream.
SaveDocument(Stream, PdfSaveOptions) Saves the current PDF document to the specified stream with encryption settings and document signature.
SaveDocument(Stream, PdfSaveOptions, Boolean) Saves the current PDF document to the specified stream with encryption settings and document signature using detach stream mode.
SaveDocument(Stream, Boolean) Saves the current PDF document to the specified stream using the detach stream mode.
SaveDocument(String) Saves the current document to the specified file path.
SaveDocument(String, PdfSaveOptions) Saves the current PDF document to the specified file path with encryption and sign settings.
SaveDocument(String, PdfSaveOptions, Boolean) Saves the current PDF document to the specified file with encryption settings and document signature using the detach stream mode.
SaveDocument(String, Boolean) Saves the current PDF document to the specified file using the detach stream mode.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
PasswordRequested Occurs when requesting a security password to open a protected PDF file.
PrintPage Occurs when the document page is printed.
QueryPageSettings Occurs immediately before the PdfDocumentProcessor.PrintPage event.
See Also