Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfBytesResult

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
67621aa8a46e with working tree changes
Implements
IOfficeResult<byte[]> IOfficeResult
Modifiers
sealed

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

Inheritance

  • object
  • PdfBytesResult

Usage

Explore 2 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 2

Methods

public static PdfBytesResult FromFailure(Exception exception) #

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

Parameters

exception System.Exception required
public static PdfBytesResult FromSuccess(byte[] bytes) #

Creates a successful byte generation result.

Parameters

bytes byte[] required
public byte[] RequireBytes() #

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

Returns

byte[]
public byte[] RequireValue() #

Returns the produced value or throws when the operation did not complete.

Returns

byte[]

Properties

public bool Succeeded { get; } #

True when byte generation completed.

public byte[] Bytes { get; } #

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

public byte[] Value { get; } #

Gets the produced value, or null when the operation did not complete.

public long 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 bool HasWarnings { get; } #

True when PDF output produced a warning.