• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PrintOptions

Print options used by Print(Document, PrintOptions). The print path renders selected pages and optionally forwards each rendered page through PagePrinted for host-specific output workflows.

Inheritance
object
PrintOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Pdf.Rendering
Assembly: DRIT.Pdf.dll
Syntax
public sealed class PrintOptions

Properties

Dpi

Dots-per-inch used to compute output size when Width is 0.

Declaration
public int Dpi { get; set; }
Property Value
Type Description
int

Format

Output format for rendered pages.

Declaration
public ImageSaveFormat Format { get; set; }
Property Value
Type Description
ImageSaveFormat

JpegQuality

JPEG quality in the range 1-100.

Declaration
public int JpegQuality { get; set; }
Property Value
Type Description
int

PageCount

Number of pages to print starting from PageNumber. A value less than or equal to 0 means all remaining pages.

Declaration
public int PageCount { get; set; }
Property Value
Type Description
int

PageNumber

Zero-based index of the first page to print.

Declaration
public int PageNumber { get; set; }
Property Value
Type Description
int

PagePrinted

Optional callback invoked for each rendered page. Parameters: page index and encoded image bytes.

Declaration
public Action<int, byte[]>? PagePrinted { get; set; }
Property Value
Type Description
Action<int, byte[]>

Width

Desired output width in pixels for each rendered page. Set to 0 to derive size from Dpi.

Declaration
public int Width { get; set; }
Property Value
Type Description
int
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX