Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfPrintJob

OfficeIMO.Workflows

Namespace
OfficeIMO.Workflows
Assembly
OfficeIMO.Workflows
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Print content composed from a sheet plan, detached from later source-file or workspace changes.

Inheritance

  • object
  • PdfPrintJob

Remarks

Preview and every printer transport use the same content. Transports that cannot send PDF rasterize it, rendering a few sheets at once on separate cores.

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 2

Methods

public static PdfPrintJob Create(PdfDocument document, PdfPrintPlanRequest request, PdfPrintJobOptions? options = null, CancellationToken cancellationToken = default) #

Composes a print job from an authenticated snapshot without reopening the source location.

Parameters

document OfficeIMO.Pdf.PdfDocument required
request OfficeIMO.Workflows.PdfPrintPlanRequest required
options OfficeIMO.Workflows.PdfPrintJobOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public Stream OpenContent() #

Opens a read-only stream over the composed PDF, one page per sheet at its planned paper size.

Returns

Stream
public PdfPrintSheetImage RenderSheet(int sheetNumber, double dpi, CancellationToken cancellationToken = default) #

Renders one sheet to PNG exactly as raster delivery produces it, including the plan's color mode.

Parameters

sheetNumber int required
One-based sheet number.
dpi double required
Resolution from 36 through 600 DPI.
cancellationToken System.Threading.CancellationToken = default optional
Cancels rendering.

Properties

public string SourcePath { get; } #

Original source identity; never used to reopen content during delivery.

public PdfPrintPlan Plan { get; } #

Plan the content was composed from; one content page per sheet.

public PdfPrintContentKind ContentKind { get; } #

Whether sheets carry vector PDF content or raster images.

public IReadOnlyList<string> Diagnostics { get; } #

Notes from composition, such as why vector content was unavailable.

public long ContentLength { get; } #

Length of the composed PDF content in bytes.