API Reference

Class

PdfSaveResult

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Result returned by file and stream output operations.

Inheritance

  • Object
  • PdfSaveResult

Usage

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

Methods

public static PdfSaveResult FromFailure(String outputPath, Exception exception) #
Returns: PdfSaveResult

Creates a failed save result from an exception captured by a wrapper or adapter.

Parameters

outputPath System.String requiredposition: 0
exception System.Exception requiredposition: 1
public static PdfSaveResult FromSuccess(String outputPath, Int64 bytesWritten) #
Returns: PdfSaveResult

Creates a successful save result.

Parameters

outputPath System.String requiredposition: 0
bytesWritten System.Int64 requiredposition: 1
public PdfSaveResult RequireSuccess() #
Returns: PdfSaveResult

Returns this result or throws with diagnostics when the save failed.

Properties

public Boolean Succeeded { get; } #

True when the save operation completed.

public String OutputPath { get; } #

Full output path when the operation targeted a file path.

public Int64 BytesWritten { get; } #

Number of bytes written when the operation completed; otherwise 0.

public IReadOnlyList<String> Diagnostics { get; } #

Human-readable diagnostics explaining why the save failed.

public Exception Exception { get; } #

Exception captured from the save attempt, when available.

public IReadOnlyList<PdfTextEncodingDiagnostic> TextEncodingDiagnostics { get; } #

Structured text encoding diagnostics captured from PDF generation failures.

public PdfConversionReport Report { get; } #

Snapshot of source-conversion and structured output warnings for this save attempt.

public PdfPipelineReport Pipeline { get; } #

End-to-end create/open, mutation, and output evidence for this save attempt.

public PdfSerializationReport Serialization { get; } #

Bounded serialization evidence for a successful save, when available.

public IReadOnlyList<PdfConversionWarning> Warnings { get; } #

Source-conversion and structured output warnings for this save attempt.

public Boolean HasWarnings { get; } #

True when source conversion or PDF output produced a warning.