PdfPrint Class

This class encapsulates the necessary functionality to silently print PDF documents

Definition

Namespace: EvoPdf.PdfPrint
Assembly: EvoPdfPrint_NetCore (in EvoPdfPrint_NetCore.dll) Version: 14.0.0
C#
public class PdfPrint
Inheritance
Object    PdfPrint

Constructors

PdfPrint The PdfPrint class constructor

Properties

Color The PDF printing color. The default value is Color
DefaultPageSettings The page settings that are used as defaults for all pages to be printed
DocumentName The document name to display in a print status dialog box or printer queue while printing the document
ImpersonationOptions The impersonation options used during tool execution
LicenseKey Gets or sets the license key string received from vendor. If this property is null the tool will automatically enter in evaluation mode
OwnerPassword The owner password to be used to open a password protected PDF document
PdfDocumentInfo Gets the object encapsulating the PDF document properties. This objects is populated after tool execution finished
PdfToolFullPath Sets the full path of the .dat helper file. By default this file is expected to be found in the same folder with .dll assembly.
PrinterSettings The settings of the printer that prints the document
Resolution The PDF printing resolution in DPI. The default value is 300
RunTimeoutSec The maximum time allowed for this tool to run
ShowStatusDialog Set this property to false to disable the status dialog during printing. The default value is true
UseHardMargins Set this property to false to disable the usage of printer hard margins when calculating the space available for printing in paper. The default value is true
UserPassword The user password to be used to open a password protected PDF document

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetPageCount(Byte) Gets the number of PDF pages of a PDF document
GetPageCount(Stream) Gets the number of pages of a PDF document in a stream
GetPageCount(String) Gets the number of PDF pages of a PDF file
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
Print(Byte) Prints all the pages in a PDF document using the current printer and page settings
Print(Stream) Prints all the pages of PDF document in a stream using the current printer and page settings
Print(String) Prints all the pages of a PDF file using the current printer and page settings
Print(Byte, Int32) Prints the pages of a PDF document starting from a given PDF page number to the end of the PDF document using the current printer and page settings
Print(Stream, Int32) Prints the pages of a PDF document in a stream starting from a given PDF page number to the end of the PDF document using the current printer and page settings
Print(String, Int32) Prints the pages of a PDF file starting from a given PDF page number to the end using the current printer and page settings
Print(Byte, Int32, Int32) Prints a range of pages of a PDF document using the current printer and page settings
Print(Stream, Int32, Int32) Prints a range of pages of a PDF document in a stream using the current printer and page settings
Print(String, Int32, Int32) Prints a range of pages of a PDF file using the current printer and page settings
ToString
(Inherited from Object)

Events

PagePrintedEvent The event which is raised right after the PDF page has been printed. In the event handler you can end or cancel printing job
PagePrintingEvent The event which is raised right before printing the PDF page. In the event handler you can end or cancel printing job
PreparePagePrintingEvent The event which is raised immediately before each PagePrintingEvent event. In the event handler you can set the page settings for the page being printed, cancel or end printing job

See Also