API Reference
RtfPdfConverterExtensions
Converts parsed RtfDocument models to PDF.
Inheritance
- Object
- RtfPdfConverterExtensions
Methods
public static PdfSaveResult SaveAsPdf(RtfDocument document, String path, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #PdfSaveResultSaves an RTF document as PDF at the specified path.
Parameters
- arg1 OfficeIMO.Rtf.RtfDocument
- arg2 System.String
- arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static PdfSaveResult SaveAsPdf(RtfDocument document, Stream stream, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #PdfSaveResultSaves an RTF document as PDF to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Rtf.RtfDocument
- arg2 System.IO.Stream
- arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static Task<PdfSaveResult> SaveAsPdfAsync(RtfDocument document, String path, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #Task<PdfSaveResult>Converts synchronously, then asynchronously saves an RTF PDF at the specified path.
Parameters
- arg1 OfficeIMO.Rtf.RtfDocument
- arg2 System.String
- arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static Task<PdfSaveResult> SaveAsPdfAsync(RtfDocument document, Stream stream, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #Task<PdfSaveResult>Converts synchronously, then asynchronously saves an RTF PDF to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Rtf.RtfDocument
- arg2 System.IO.Stream
- arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static PdfSaveResult SaveAsPdfResult(RtfDocument document, String path, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #PdfSaveResultAttempts to save an RTF document as PDF at the specified path.
Parameters
- arg1 OfficeIMO.Rtf.RtfDocument
- arg2 System.String
- arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static PdfSaveResult SaveAsPdfResult(RtfDocument document, Stream stream, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #PdfSaveResultAttempts to save an RTF document as PDF to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Rtf.RtfDocument
- arg2 System.IO.Stream
- arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static async Task<PdfSaveResult> SaveAsPdfResultAsync(RtfDocument document, String path, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #Task<PdfSaveResult>Attempts to save an RTF document as PDF at the specified path asynchronously.
Parameters
- arg1 OfficeIMO.Rtf.RtfDocument
- arg2 System.String
- arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static async Task<PdfSaveResult> SaveAsPdfResultAsync(RtfDocument document, Stream stream, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #Task<PdfSaveResult>Attempts to save an RTF document as PDF to a caller-owned stream asynchronously.
Parameters
- arg1 OfficeIMO.Rtf.RtfDocument
- arg2 System.IO.Stream
- arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- arg4 System.Threading.CancellationToken = default
public static OfficeOutputResult<PdfRtfConversionReport> SaveAsRtf(PdfDocument document, String path, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #OfficeOutputResult<PdfRtfConversionReport>Converts an opened PDF and saves the editable RTF document to a file.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 System.String
- arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg4 System.Threading.CancellationToken = default
public static OfficeOutputResult<PdfRtfConversionReport> SaveAsRtf(PdfDocument document, Stream stream, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #OfficeOutputResult<PdfRtfConversionReport>Converts an opened PDF and saves the editable RTF document to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 System.IO.Stream
- arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg4 System.Threading.CancellationToken = default
public static OfficeOutputResult<PdfRtfConversionReport> SaveAsRtf(PdfDocumentReadResult document, String path, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #OfficeOutputResult<PdfRtfConversionReport>Converts a logical PDF model and saves the editable RTF document to a file.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 System.String
- arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg4 System.Threading.CancellationToken = default
public static OfficeOutputResult<PdfRtfConversionReport> SaveAsRtf(PdfDocumentReadResult document, Stream stream, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #OfficeOutputResult<PdfRtfConversionReport>Converts a logical PDF model and saves the editable RTF document to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 System.IO.Stream
- arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg4 System.Threading.CancellationToken = default
public static Task<OfficeOutputResult<PdfRtfConversionReport>> SaveAsRtfAsync(PdfDocument document, String path, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #Task<OfficeOutputResult<PdfRtfConversionReport>>Converts an opened PDF and asynchronously saves the editable RTF document to a file.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 System.String
- arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg4 System.Threading.CancellationToken = default
public static Task<OfficeOutputResult<PdfRtfConversionReport>> SaveAsRtfAsync(PdfDocument document, Stream stream, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #Task<OfficeOutputResult<PdfRtfConversionReport>>Converts an opened PDF and asynchronously saves the editable RTF document to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 System.IO.Stream
- arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg4 System.Threading.CancellationToken = default
public static async Task<OfficeOutputResult<PdfRtfConversionReport>> SaveAsRtfAsync(PdfDocumentReadResult document, String path, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #Task<OfficeOutputResult<PdfRtfConversionReport>>Converts a logical PDF model and asynchronously saves the editable RTF document to a file.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 System.String
- arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg4 System.Threading.CancellationToken = default
public static async Task<OfficeOutputResult<PdfRtfConversionReport>> SaveAsRtfAsync(PdfDocumentReadResult document, Stream stream, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #Task<OfficeOutputResult<PdfRtfConversionReport>>Converts a logical PDF model and asynchronously saves the editable RTF document to a caller-owned stream.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 System.IO.Stream
- arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg4 System.Threading.CancellationToken = default
public static Byte[] ToPdfBytes(RtfDocument document, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #Byte[]Converts an RTF document to PDF bytes.
Parameters
- document OfficeIMO.Rtf.RtfDocument
- options OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- cancellationToken System.Threading.CancellationToken = default
public static PdfDocument ToPdfDocument(RtfDocument document, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #PdfDocumentConverts an RTF document to a first-party PDF document model.
Parameters
- document OfficeIMO.Rtf.RtfDocument
- options OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- cancellationToken System.Threading.CancellationToken = default
public static PdfDocumentConversionResult ToPdfDocumentResult(RtfDocument document, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #PdfDocumentConversionResultConverts an RTF document to PDF with operation-scoped diagnostics.
Parameters
- document OfficeIMO.Rtf.RtfDocument
- options OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null
- cancellationToken System.Threading.CancellationToken = default
public static RtfDocument ToRtfDocument(PdfDocument document, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #RtfDocumentConverts an opened PDF into an editable RTF document.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg3 System.Threading.CancellationToken = default
public static RtfDocument ToRtfDocument(PdfDocumentReadResult document, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #RtfDocumentConverts a logical PDF model into an editable RTF document.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg3 System.Threading.CancellationToken = default
public static PdfRtfConversionResult ToRtfDocumentResult(PdfDocument document, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #PdfRtfConversionResultConverts an opened PDF into an editable RTF document with conversion diagnostics.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocument
- arg2 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg3 System.Threading.CancellationToken = default
public static PdfRtfConversionResult ToRtfDocumentResult(PdfDocumentReadResult document, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #PdfRtfConversionResultConverts a logical PDF model into an editable RTF document with conversion diagnostics.
Parameters
- arg1 OfficeIMO.Pdf.PdfDocumentReadResult
- arg2 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null
- arg3 System.Threading.CancellationToken = default
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object