Table of Contents

Class PrintJobOptions

Namespace
combit.Reporting.Printing.Pdf
Assembly
combit.ListLabel32.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

string

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

string

PreferGrayscale

Gets or sets a value indicating whether rasterized printing should prefer 8-bit grayscale (sgray_8) over 24-bit color (srgb_8) when the printer's IPP/PWG Raster backend is used. Grayscale produces roughly one third of the data of color at the same resolution, which is useful for monochrome documents or when the printer only offers a high resolution (such as 600 DPI). Ignored for color content that requires color fidelity, and only honored when the printer supports grayscale raster. Has no effect on the GDI or lpr backends.

public bool PreferGrayscale { get; set; }

Property Value

bool

The default value is false.

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

bool

The default value is true.

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.