Class PrintJobOptions
- Namespace
- combit.Reporting.Printing.Pdf
- Assembly
- combit.ListLabel31.CrossPlatform.Printing.Pdf.dll
Configures how a PDF document is printed, including copy count, duplex mode, paper size, scaling behavior, rasterization DPI, and passthrough preference.
public sealed class PrintJobOptions
- Inheritance
-
PrintJobOptions
- Inherited Members
Properties
Copies
Gets or sets the number of copies to print. Must be at least 1.
public int Copies { get; set; }
Property Value
- int
The default value is
1.
Exceptions
- ArgumentOutOfRangeException
Thrown when the value is less than 1.
Duplex
Gets or sets the duplex (double-sided) printing mode.
public DuplexMode Duplex { get; set; }
Property Value
- DuplexMode
The default value is None.
JobName
Gets or sets the name of the print job as it appears in the print spooler. When null, a default name derived from the file name is used.
public string? JobName { get; set; }
Property Value
PaperSize
Gets or sets the paper size name to use for printing (for example, "A4" or "Letter").
When null, the printer default paper size is used.
public string? PaperSize { get; set; }
Property Value
PreferPdfPassthrough
Gets or sets a value indicating whether the service should prefer sending the raw PDF directly to the printer (passthrough) when the printer supports it. When false, the service always rasterizes the document.
public bool PreferPdfPassthrough { get; set; }
Property Value
RasterDpi
Gets or sets the DPI (dots per inch) used when rasterizing PDF pages for printing. Higher values produce sharper output but consume more memory and processing time. Must be at least 72.
public int RasterDpi { get; set; }
Property Value
- int
The default value is
300.
Exceptions
- ArgumentOutOfRangeException
Thrown when the value is less than 72.
ScalingMode
Gets or sets how the PDF pages are scaled to fit the selected paper size.
public PrintScalingMode ScalingMode { get; set; }
Property Value
- PrintScalingMode
The default value is FitToPage.