API Reference
PdfSaveResult
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.
Returned or exposed by
- Method PdfDocument.Save
- Method PdfDocument.Save
- Method PdfDocument.SaveAsync
- Method PdfDocument.SaveAsync
- Method PdfDocument.TrySave
- Method PdfDocument.TrySave
- Method PdfDocument.TrySaveAsync
- Method PdfDocument.TrySaveAsync
- Method PdfDocumentConversionResult.Save
- Method PdfDocumentConversionResult.Save
- Method PdfDocumentConversionResult.SaveAsync
- Method PdfDocumentConversionResult.SaveAsync
- Method PdfDocumentConversionResult.TrySave
- Method PdfDocumentConversionResult.TrySave
- Method PdfDocumentConversionResult.TrySaveAsync
- Method PdfDocumentConversionResult.TrySaveAsync
- Method PdfSaveResult.FromFailure
- Method PdfSaveResult.FromSuccess
- Method PdfSaveResult.RequireSuccess
Methods
public static PdfSaveResult FromFailure(String outputPath, Exception exception) #PdfSaveResultCreates a failed save result from an exception captured by a wrapper or adapter.
Parameters
- outputPath System.String
- exception System.Exception
public static PdfSaveResult FromSuccess(String outputPath, Int64 bytesWritten) #PdfSaveResultCreates a successful save result.
Parameters
- outputPath System.String
- bytesWritten System.Int64
public PdfSaveResult RequireSuccess() #PdfSaveResultReturns this result or throws with diagnostics when the save failed.
Inherited Methods
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.