Click or drag to resize

PdfPrintSettings Class

The page print settings.
Inheritance Hierarchy
System Object
Spire.Pdf.Print PdfPrintSettings

Namespace: Spire.Pdf.Print
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public class PdfPrintSettings : IDisposable

The PdfPrintSettings type exposes the following members.

Constructors
Name Description
Public method PdfPrintSettings
Initializes a new instance of the PdfPrintSetting class.
Top
Properties
Name Description
Public property CanDuplex
Get a value indicating whether the printer supports double-sided printing.
Public property Collate
Get or set a value indicating whether the printed document is collated.
Public property Color
Get or set a value indicating whether the page should be printed in color. true if the page should be printed in color; otherwise, false. The default is determined by the printer.
Public property Copies
Get or set the number of copies of the document to print.
Public property DocumentName
Get or set the document name to display (for example, in a print status dialog box or printer queue) while printing the document.
Public property Duplex
Get or set the printer setting for double-sided printing.
Public property IsValid
Gets a value indicating whether the System.Drawing.Printing.PrinterSettings.PrinterName property designates a valid printer.
Public property Landscape
Get or set a value indicating whether the page is printed in landscape or portrait orientation. Returns: True if the page should be printed in landscape orientation; otherwise, false.
Public property PaperSize
Get or set the size of a piece of paper.
Public property PrintController
Get or set the print controller that guides the printing process.
Public property PrinterName
Get or set the name of printer which is on printing pdf document.
Public property PrinterResolutionKind
Get or set the printer resolution kind.
Public property PrintFromPage
Get the page number which you choose as the start page to printing.
Public property PrintPages
Get the user has specified print pages.
Public property PrintPerformanceMode
Specifies print performance mode. Default : Fast
Public property PrintToPage
Get the pagenumber which you choose as the final page to printing.
Public property UseHighQuality
Get a value indicating whether to use high-quality printing.
Top
Methods
Name Description
Public method Dispose
Releases all resources used.
Protected method Dispose(Boolean)
Releases all resources used.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize (Overrides Object Finalize .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method PrintToFile
Set printing to file.
Public method SelectBookletLayout
Select booklet layout.
Public method SelectBookletLayout(PdfBookletBindingMode)
Select booklet layout.
Public method SelectBookletLayout(PdfBookletSubsetMode)
Select booklet layout.
Public method SelectBookletLayout(PdfBookletSubsetMode, PdfBookletBindingMode)
Select booklet layout.
Public method SelectMultiPageLayout
Select muti page to one paper layout. Default rows = 2, columns = 2, hasPageBorder = false, pageOrder = PdfMultiPageOrder.Horizontal.
Public method SelectMultiPageLayout(Int32)
Select muti page to one paper layout.
Public method SelectMultiPageLayout(Int32, Int32)
Select muti page to one paper layout.
Public method SelectMultiPageLayout(Int32, Int32, Boolean)
Select muti page to one paper layout.
Public method SelectMultiPageLayout(Int32, Int32, Boolean, PdfMultiPageOrder)
Select muti page to one paper layout.
Public method SelectMultiPageLayout(Int32, Int32, Boolean, PdfMultiPageOrder, Single)
Select muti page to one paper layout.
Public method SelectPageRange
Set print page range.
Public method SelectSinglePageLayout
Select one page to one paper layout. Default pageScalingMode = PdfSinglePageScalingMode.FitSize, autoPortraitOrLandscape = true, customScaling = 100f.
Public method SelectSinglePageLayout(PdfSinglePageScalingMode)
Select one page to one paper layout.
Public method SelectSinglePageLayout(PdfSinglePageScalingMode, Boolean)
Select one page to one paper layout.
Public method SelectSinglePageLayout(PdfSinglePageScalingMode, Boolean, Single)
Select one page to one paper layout.
Public method SelectSomePages
Set print some pages.
Public method SelectSplitPageLayout
Select split page to muti paper layout.
Public method SetPaperMargins
Set paper margins,measured in hundredths of an inch.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Events
Name Description
Public event BeginPrint
Occurs when the Spire.pdf.PdfDocument.Print() method is called and before the first page of the document prints.
Public event EndPrint
Occurs when the last page of the document has printed.
Public event PaperSettings
Occurs immediately before print each paper. Note: Ignore on MacOS/Linux platform.
Public event PrintPage
Occurs when the output to print for the current page is needed.
Public event QueryPageSettings
Occurs immediately before each Spire.pdf.PdfDocument.PrintSettings.PrintPage event.
Top
See Also