PdfPrintJob
OfficeIMO.Workflows
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
- Method PdfPrintJob.Create
Accepted by parameters 2
- Method IPdfPrinterService.SubmitAsync
- Method PdfPrinterService.SubmitAsync
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
- request OfficeIMO.Workflows.PdfPrintPlanRequest
- options OfficeIMO.Workflows.PdfPrintJobOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
PdfPrintJobpublic Stream OpenContent() #Opens a read-only stream over the composed PDF, one page per sheet at its planned paper size.
Returns
Streampublic 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
- One-based sheet number.
- dpi double
- Resolution from 36 through 600 DPI.
- cancellationToken System.Threading.CancellationToken = default
- Cancels rendering.
Returns
PdfPrintSheetImageInherited Methods
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.