Method ConvertToBytes
ConvertToBytes(string, PdfAConversionOptions, CancellationToken)
Converts the PDF at inputPath to PDF/A and
returns the converted bytes together with the conversion report.
public static PdfAConversionResult ConvertToBytes(string inputPath, PdfAConversionOptions options = null, CancellationToken cancellationToken = default)
Parameters
inputPathstringoptionsPdfAConversionOptionscancellationTokenCancellationToken
Returns
ConvertToBytes(byte[], PdfAConversionOptions, CancellationToken)
Converts in-memory PDF bytes to PDF/A and returns the converted bytes together with the conversion report.
public static PdfAConversionResult ConvertToBytes(byte[] pdfData, PdfAConversionOptions options = null, CancellationToken cancellationToken = default)
Parameters
pdfDatabyte[]optionsPdfAConversionOptionscancellationTokenCancellationToken
Returns
ConvertToBytes(Stream, PdfAConversionOptions, CancellationToken)
Converts the PDF read from inputStream to PDF/A
and returns the converted bytes together with the report.
public static PdfAConversionResult ConvertToBytes(Stream inputStream, PdfAConversionOptions options = null, CancellationToken cancellationToken = default)
Parameters
inputStreamStreamoptionsPdfAConversionOptionscancellationTokenCancellationToken
Returns
ConvertToBytes(Attachment, PdfAConversionOptions, CancellationToken)
Converts the PDF carried by attachment to PDF/A
and returns the converted bytes together with the report.
public static PdfAConversionResult ConvertToBytes(Attachment attachment, PdfAConversionOptions options = null, CancellationToken cancellationToken = default)
Parameters
attachmentAttachmentoptionsPdfAConversionOptionscancellationTokenCancellationToken