Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
DocumentPrinter class helps to send PDF document to a printer in silent mode.
Inheritance Hierarchy
Bytescout.PDFRendererDocumentPrinter
Namespace: Bytescout.PDFRenderer
Assembly: Bytescout.PDFRenderer (in Bytescout.PDFRenderer.dll) Version: 13.4.1.4800-master
Syntax
The DocumentPrinter type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| DocumentPrinter |
Initializes a new instance of the DocumentPrinter class.
| |
| DocumentPrinter(String, String) |
Initializes a new instance of the DocumentPrinter class.
|
Properties
| Name | Description | |
|---|---|---|
| Collate |
Gets or sets a value indicating whether the printed document is collated.
| |
| Color |
Gets or sets a value indicating whether the page should be printed in color.
| |
| Copies |
Gets or sets the number of copies of the document to print.
Note: Not all printers support printing multiple copes. | |
| Duplex |
Gets or sets the printer setting for double-sided printing (duplex). To set duplex mode by name use
the SetDuplex(String) method.
Note: Not all printers support the duplex printing. | |
| Landscape |
Gets or sets a value indicating whether the page is printed in landscape or portrait orientation.
| |
| Margins |
Gets or sets the margins for printed page.
| |
| PaperSize |
Gets or sets the paper size for the page. To set paper size by name use the SetPaperSize(String) method.
| |
| PaperSource |
Gets or sets the page's paper source; for example, the printer's upper tray.
To set paper source by its predefined name use the SetPaperSource(String) method.
| |
| Password |
Password for protected PDF documents.
| |
| PrinterResolution |
Gets or sets the printer resolution for the page. To set resolution by its predefined name
use the SetPrinterResolution(String) method. To set custom resolution use
the SetPrinterResolution(Int32, Int32) method.
| |
| RegistrationKey |
Registration key.
| |
| RegistrationName |
Registration name.
|
Methods
| Name | Description | |
|---|---|---|
| Dispose |
Releases the unmanaged resources used by the instance and optionally releases the managed resources.
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| LoadDocumentFromFile |
Loads PDF document from specified file.
| |
| LoadDocumentFromStream |
Loads PDF document from provided stream.
| |
| MemberwiseClone | (Inherited from Object.) | |
| PrintDocument(String) |
Prints all document pages to specified printer.
| |
| PrintDocument(String, Int32) |
Prints selected pages to specified printer.
| |
| PrintDocument(String, String) |
Prints selected pages to specified printer.
| |
| PrintDocument(String, Int32, Int32) |
Prints selected pages to specified printer.
| |
| SetDuplex |
Sets duplex mode by predefined name. The predefined names of duplex modes should correspond
to the Duplex enumeration.
| |
| SetMargins |
Sets the margins for the printed page.
| |
| SetPaperSize |
Sets paper format by predefined name, such as "A4" or "Letter". The predefined names
of paper formats should correspond to the PaperKind enumeration.
| |
| SetPaperSource |
Sets paper source by predefined name. The names of predefined paper sources should correspond
to the PaperSourceKind enumeration.
| |
| SetPrinterResolution(String) |
Sets printer resolution by predefined name such as "High" or "Draft". The names of predefined resolutions
should correspond to the PrinterResolutionKind enumeration.
| |
| SetPrinterResolution(Int32, Int32) |
Sets custom printer resolution.
| |
| ToString | (Inherited from Object.) |
Events
| Name | Description | |
|---|---|---|
| PasswordRequired |
Occurs when the password required to decrypt PDF document.
|
See Also