Click or drag to resize
Pdf Library for .NET

PdfPrinter Class

Send PDF documents to printer.
Inheritance Hierarchy
SystemObject
  SelectPdfPdfTool
    SelectPdfPdfPrinter

Namespace:  SelectPdf
Assembly:  Select.Pdf (in Select.Pdf.dll) Version: 24.1
Syntax
public class PdfPrinter : PdfTool

The PdfPrinter type exposes the following members.

Constructors
  NameDescription
Public methodPdfPrinter
Constructs a PdfPrinter object.
Top
Properties
  NameDescription
Public propertyColorSpace
The color space of the rasterized pdf pages. Default value is RGB.
Public propertyCustomScalePercentage
Percentage for custom content scaling. This value is taken into account only when PageSizing is set to CustomScale. Default value is 100.
Public propertyDocumentInformation
PDF document information. This property is populated after the requested operation (GetText, GetHtml, etc) is finished.
(Inherited from PdfTool.)
Public propertyDocumentName
Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
Public propertyEndPageNumber
The page number where the current operation will end on the PDF file. The default value is 0 which means that all the PDF document is processed starting from the StartPageNumber page.
(Inherited from PdfTool.)
Public propertyPageOrientation
Defines printed page orientation. The default value is Auto and the page orientation is automatically determined.
Public propertyPageSettings
Access printed page settings.
Public propertyPageSizing
Defines the page sizing for printing. The default value is Fit and the content is resized to cover the paper as much as possible.
Public propertyPrinterSettings
Access printer settings.
Public propertyResolution
The resolution of the rasterized pdf pages in DPI. Default value is 300.
Public propertyShowPrintProgress
Display print progress window. Default value is False and the PDF document is silently printed.
Public propertyStartPageNumber
The page number from where the current operation will start on the PDF file. The default value is 1 which means that the operation will start from the first page.
(Inherited from PdfTool.)
Public propertyTimeout
Timeout in seconds for the current operation. Default value is 600 seconds.
(Inherited from PdfTool.)
Public propertyUserPassword
The user password to be used to open the PDF document for reading. The default value is null, which means that no password will be used to open the PDF document.
(Inherited from PdfTool.)
Top
Methods
  NameDescription
Public methodGetInfo
Gets the information of the loaded PDF document.
(Inherited from PdfTool.)
Public methodGetPageCount
Gets the number of pages in the loaded PDF document.
(Inherited from PdfTool.)
Public methodLoad(Byte)
Loads a pdf document from a byte array.
(Inherited from PdfTool.)
Public methodLoad(Stream)
Loads a pdf document from the specified stream.
(Inherited from PdfTool.)
Public methodLoad(String)
Loads an existing pdf file.
(Inherited from PdfTool.)
Public methodLoad(Byte, String)
Loads a password protected pdf document from a byte array.
(Inherited from PdfTool.)
Public methodLoad(Stream, String)
Loads a pdf document from a stream containing a password protected pdf document.
(Inherited from PdfTool.)
Public methodLoad(String, String)
Loads an existing password protected pdf file.
(Inherited from PdfTool.)
Public methodPrint
Send current PDF document to current printer using current page settings.
Top
Events
  NameDescription
Public eventAfterPagePrinting
Occurs after each page print. It can be used to cancel the printing of the rest of the document and also to add content to the printed page.
Public eventBeforePagePrinting
Occurs right before each page print. It can be used to cancel the printing starting with the current page.
Top
See Also