API Reference

Class

PdfBytesResult

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Result returned by non-throwing in-memory PDF byte generation.

Inheritance

  • Object
  • PdfBytesResult

Usage

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

Methods

public static PdfBytesResult FromFailure(Exception exception) #
Returns: PdfBytesResult

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

Parameters

exception System.Exception requiredposition: 0
public static PdfBytesResult FromSuccess(Byte[] bytes) #
Returns: PdfBytesResult

Creates a successful byte generation result.

Parameters

bytes System.Byte[] requiredposition: 0
public Byte[] RequireBytes() #
Returns: Byte[]

Returns generated PDF bytes or throws with diagnostics when generation failed.

Properties

public Boolean Succeeded { get; } #

True when byte generation completed.

public Byte[] Bytes { get; } #

Generated PDF bytes when the operation completed; otherwise an empty array.

public Int64 ByteCount { get; } #

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

public IReadOnlyList<String> Diagnostics { get; } #

Human-readable diagnostics explaining why byte generation failed.

public Exception Exception { get; } #

Exception captured from the byte generation attempt, when available.

public IReadOnlyList<PdfTextEncodingDiagnostic> TextEncodingDiagnostics { get; } #

Structured text encoding diagnostics captured from PDF generation failures.

public PdfConversionReport Report { get; } #

Structured PDF output warnings captured for this byte-generation attempt.

public PdfPipelineReport Pipeline { get; } #

End-to-end create/open, mutation, and byte-generation evidence.

public IReadOnlyList<PdfConversionWarning> Warnings { get; } #

Structured PDF output warnings captured for this byte-generation attempt.

public Boolean HasWarnings { get; } #

True when PDF output produced a warning.