PdfAConversionResult
OfficeIMO.Pdf
The PDF/A file produced by conversion, or the report of why the source was refused.
Inheritance
- object
- PdfAConversionResult
Usage
Explore 1 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 PdfDocument.ConvertToPdfA
Methods
public PdfDocument RequireValue() #Returns the converted document, or throws PdfAConversionException listing every violation.
Returns
PdfDocumentpublic void Save(Stream stream, CancellationToken cancellationToken = default) #Writes the converted file to a caller-owned stream, or throws PdfAConversionException without writing to it.
Parameters
- stream System.IO.Stream
- cancellationToken System.Threading.CancellationToken = default
public void Save(string path, CancellationToken cancellationToken = default) #Writes the converted file, or throws PdfAConversionException without creating path.
Parameters
- path string
- cancellationToken System.Threading.CancellationToken = default
public byte[] ToBytes() #Returns a copy of the converted bytes, or throws PdfAConversionException listing every violation.
Returns
byte[]Inherited Methods
Properties
public bool Succeeded { get; } #Gets whether conversion produced a file. When false, PdfAConversionReport.Violations lists every reason.
public PdfAConversionReport Report { get; } #Gets the changes made, or the reasons the source was refused.
public PdfDocument? Value { get; } #Gets the converted document, or null when conversion was refused.