Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

RtfPdfConverterExtensions

Namespace OfficeIMO.Rtf.Pdf
Assembly OfficeIMO.Rtf.Pdf
Modifiers static

Converts parsed RtfDocument models to PDF.

Inheritance

  • Object
  • RtfPdfConverterExtensions

Methods

SaveAsPdf 2 overloads
public static PdfSaveResult SaveAsPdf(RtfDocument document, String path, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: PdfSaveResult

Saves an RTF document as PDF at the specified path.

Parameters

arg1 OfficeIMO.Rtf.RtfDocument requiredposition: 0
arg2 System.String requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static PdfSaveResult SaveAsPdf(RtfDocument document, Stream stream, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: PdfSaveResult

Saves an RTF document as PDF to a caller-owned stream.

Parameters

arg1 OfficeIMO.Rtf.RtfDocument requiredposition: 0
arg2 System.IO.Stream requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
SaveAsPdfAsync 2 overloads
public static Task<PdfSaveResult> SaveAsPdfAsync(RtfDocument document, String path, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<PdfSaveResult>

Converts synchronously, then asynchronously saves an RTF PDF at the specified path.

Parameters

arg1 OfficeIMO.Rtf.RtfDocument requiredposition: 0
arg2 System.String requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static Task<PdfSaveResult> SaveAsPdfAsync(RtfDocument document, Stream stream, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<PdfSaveResult>

Converts synchronously, then asynchronously saves an RTF PDF to a caller-owned stream.

Parameters

arg1 OfficeIMO.Rtf.RtfDocument requiredposition: 0
arg2 System.IO.Stream requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
SaveAsPdfResult 2 overloads
public static PdfSaveResult SaveAsPdfResult(RtfDocument document, String path, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: PdfSaveResult

Attempts to save an RTF document as PDF at the specified path.

Parameters

arg1 OfficeIMO.Rtf.RtfDocument requiredposition: 0
arg2 System.String requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static PdfSaveResult SaveAsPdfResult(RtfDocument document, Stream stream, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: PdfSaveResult

Attempts to save an RTF document as PDF to a caller-owned stream.

Parameters

arg1 OfficeIMO.Rtf.RtfDocument requiredposition: 0
arg2 System.IO.Stream requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
SaveAsPdfResultAsync 2 overloads
public static async Task<PdfSaveResult> SaveAsPdfResultAsync(RtfDocument document, String path, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<PdfSaveResult>

Attempts to save an RTF document as PDF at the specified path asynchronously.

Parameters

arg1 OfficeIMO.Rtf.RtfDocument requiredposition: 0
arg2 System.String requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static async Task<PdfSaveResult> SaveAsPdfResultAsync(RtfDocument document, Stream stream, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<PdfSaveResult>

Attempts to save an RTF document as PDF to a caller-owned stream asynchronously.

Parameters

arg1 OfficeIMO.Rtf.RtfDocument requiredposition: 0
arg2 System.IO.Stream requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
SaveAsRtf 4 overloads
public static OfficeOutputResult<PdfRtfConversionReport> SaveAsRtf(PdfDocument document, String path, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: OfficeOutputResult<PdfRtfConversionReport>

Converts an opened PDF and saves the editable RTF document to a file.

Parameters

arg1 OfficeIMO.Pdf.PdfDocument requiredposition: 0
arg2 System.String requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static OfficeOutputResult<PdfRtfConversionReport> SaveAsRtf(PdfDocument document, Stream stream, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: OfficeOutputResult<PdfRtfConversionReport>

Converts an opened PDF and saves the editable RTF document to a caller-owned stream.

Parameters

arg1 OfficeIMO.Pdf.PdfDocument requiredposition: 0
arg2 System.IO.Stream requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static OfficeOutputResult<PdfRtfConversionReport> SaveAsRtf(PdfDocumentReadResult document, String path, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: OfficeOutputResult<PdfRtfConversionReport>

Converts a logical PDF model and saves the editable RTF document to a file.

Parameters

arg1 OfficeIMO.Pdf.PdfDocumentReadResult requiredposition: 0
arg2 System.String requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static OfficeOutputResult<PdfRtfConversionReport> SaveAsRtf(PdfDocumentReadResult document, Stream stream, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: OfficeOutputResult<PdfRtfConversionReport>

Converts a logical PDF model and saves the editable RTF document to a caller-owned stream.

Parameters

arg1 OfficeIMO.Pdf.PdfDocumentReadResult requiredposition: 0
arg2 System.IO.Stream requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
SaveAsRtfAsync 4 overloads
public static Task<OfficeOutputResult<PdfRtfConversionReport>> SaveAsRtfAsync(PdfDocument document, String path, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<OfficeOutputResult<PdfRtfConversionReport>>

Converts an opened PDF and asynchronously saves the editable RTF document to a file.

Parameters

arg1 OfficeIMO.Pdf.PdfDocument requiredposition: 0
arg2 System.String requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static Task<OfficeOutputResult<PdfRtfConversionReport>> SaveAsRtfAsync(PdfDocument document, Stream stream, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<OfficeOutputResult<PdfRtfConversionReport>>

Converts an opened PDF and asynchronously saves the editable RTF document to a caller-owned stream.

Parameters

arg1 OfficeIMO.Pdf.PdfDocument requiredposition: 0
arg2 System.IO.Stream requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static async Task<OfficeOutputResult<PdfRtfConversionReport>> SaveAsRtfAsync(PdfDocumentReadResult document, String path, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: Task<OfficeOutputResult<PdfRtfConversionReport>>

Converts a logical PDF model and asynchronously saves the editable RTF document to a file.

Parameters

arg1 OfficeIMO.Pdf.PdfDocumentReadResult requiredposition: 0
arg2 System.String requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static async Task<OfficeOutputResult<PdfRtfConversionReport>> SaveAsRtfAsync(PdfDocumentReadResult document, Stream stream, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: 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 requiredposition: 0
arg2 System.IO.Stream requiredposition: 1
arg3 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 2
arg4 System.Threading.CancellationToken = default optionalposition: 3
public static Byte[] ToPdfBytes(RtfDocument document, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: Byte[]

Converts an RTF document to PDF bytes.

Parameters

document OfficeIMO.Rtf.RtfDocument requiredposition: 0
options OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
public static PdfDocument ToPdfDocument(RtfDocument document, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: PdfDocument

Converts an RTF document to a first-party PDF document model.

Parameters

document OfficeIMO.Rtf.RtfDocument requiredposition: 0
options OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
public static PdfDocumentConversionResult ToPdfDocumentResult(RtfDocument document, RtfToPdfOptions options = null, CancellationToken cancellationToken = default) #
Returns: PdfDocumentConversionResult

Converts an RTF document to PDF with operation-scoped diagnostics.

Parameters

document OfficeIMO.Rtf.RtfDocument requiredposition: 0
options OfficeIMO.Rtf.Pdf.RtfToPdfOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
ToRtfDocument 2 overloads
public static RtfDocument ToRtfDocument(PdfDocument document, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: RtfDocument

Converts an opened PDF into an editable RTF document.

Parameters

arg1 OfficeIMO.Pdf.PdfDocument requiredposition: 0
arg2 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 1
arg3 System.Threading.CancellationToken = default optionalposition: 2
public static RtfDocument ToRtfDocument(PdfDocumentReadResult document, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: RtfDocument

Converts a logical PDF model into an editable RTF document.

Parameters

arg1 OfficeIMO.Pdf.PdfDocumentReadResult requiredposition: 0
arg2 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 1
arg3 System.Threading.CancellationToken = default optionalposition: 2
ToRtfDocumentResult 2 overloads
public static PdfRtfConversionResult ToRtfDocumentResult(PdfDocument document, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: PdfRtfConversionResult

Converts an opened PDF into an editable RTF document with conversion diagnostics.

Parameters

arg1 OfficeIMO.Pdf.PdfDocument requiredposition: 0
arg2 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 1
arg3 System.Threading.CancellationToken = default optionalposition: 2
public static PdfRtfConversionResult ToRtfDocumentResult(PdfDocumentReadResult document, PdfToRtfOptions options = null, CancellationToken cancellationToken = default) #
Returns: PdfRtfConversionResult

Converts a logical PDF model into an editable RTF document with conversion diagnostics.

Parameters

arg1 OfficeIMO.Pdf.PdfDocumentReadResult requiredposition: 0
arg2 OfficeIMO.Rtf.Pdf.PdfToRtfOptions = null optionalposition: 1
arg3 System.Threading.CancellationToken = default optionalposition: 2