Link Search Menu Expand Document

DocumentPrinter Class

DocumentPrinter class helps to send PDF document to a printer in silent mode.
Inheritance Hierarchy
SystemObject
Bytescout.PDFRendererDocumentPrinter

Namespace:Bytescout.PDFRenderer
Assembly: Bytescout.PDFRenderer (in Bytescout.PDFRenderer.dll) Version: 13.0.1.4282-master
Syntax
public class DocumentPrinter : IDisposable

The DocumentPrinter type exposes the following members.

Constructors
NameDescription
Public methodDocumentPrinter
Initializes a new instance of the DocumentPrinter class.
Public methodDocumentPrinter(String, String)
Initializes a new instance of the DocumentPrinter class.
Top
Properties
NameDescription
Public propertyCollate
Gets or sets a value indicating whether the printed document is collated.
Public propertyColor
Gets or sets a value indicating whether the page should be printed in color.
Public propertyCopies
Gets or sets the number of copies of the document to print.

Note: Not all printers support printing multiple copes.

Public propertyDuplex
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.

Public propertyLandscape
Gets or sets a value indicating whether the page is printed in landscape or portrait orientation.
Public propertyMargins
Gets or sets the margins for printed page.
Public propertyPaperSize
Gets or sets the paper size for the page. To set paper size by name use the SetPaperSize(String) method.
Public propertyPaperSource
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.
Public propertyPassword
Password for protected PDF documents.
Public propertyPrinterResolution
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.
Public propertyRegistrationKey
Registration key.
Public propertyRegistrationName
Registration name.
Top
Methods
NameDescription
Public methodDispose
Releases the unmanaged resources used by the instance and optionally releases the managed resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodLoadDocumentFromFile
Loads PDF document from specified file.
Public methodLoadDocumentFromStream
Loads PDF document from provided stream.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPrintDocument(String)
Prints all document pages to specified printer.
Public methodPrintDocument(String, Int32)
Prints selected pages to specified printer.
Public methodPrintDocument(String, String)
Prints selected pages to specified printer.
Public methodPrintDocument(String, Int32, Int32)
Prints selected pages to specified printer.
Public methodSetDuplex
Sets duplex mode by predefined name. The predefined names of duplex modes should correspond to the Duplex enumeration.
Public methodSetMargins
Sets the margins for the printed page.
Public methodSetPaperSize
Sets paper format by predefined name, such as "A4" or "Letter". The predefined names of paper formats should correspond to the PaperKind enumeration.
Public methodSetPaperSource
Sets paper source by predefined name. The names of predefined paper sources should correspond to the PaperSourceKind enumeration.
Public methodSetPrinterResolution(String)
Sets printer resolution by predefined name such as "High" or "Draft". The names of predefined resolutions should correspond to the PrinterResolutionKind enumeration.
Public methodSetPrinterResolution(Int32, Int32)
Sets custom printer resolution.
Public methodToString (Inherited from Object.)
Top
Events
NameDescription
Public eventPasswordRequired
Occurs when the password required to decrypt PDF document.
Top
See Also

Reference


Copyright © 2016 - 2021 ByteScout