Link Search Menu Expand Document

DocumentPrinter Methods

The DocumentPrinter type exposes the following members.

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
See Also

Reference