Table of Contents

Method Convert

Namespace
DocWright
Assembly
DocWright.dll

Convert(Stream, Stream, ConvertOptions?)

Converts a supported document stream.

public ConversionResult Convert(Stream input, Stream output, ConvertOptions? options = null)

Parameters

input Stream

The readable stream containing the source document.

output Stream

The writable stream that receives PDF bytes.

options ConvertOptions

The conversion options, or null for defaults.

Returns

ConversionResult

A summary of the conversion.

Exceptions

ArgumentNullException

input or output is null.

ArgumentException

input is not readable or output is not writable.

Convert(WordDocument, Stream, ConvertOptions?)

Converts a mutable DOM document directly.

public ConversionResult Convert(WordDocument document, Stream output, ConvertOptions? options = null)

Parameters

document WordDocument

The document to convert.

output Stream

The writable stream that receives PDF bytes.

options ConvertOptions

The conversion options, or null for defaults.

Returns

ConversionResult

A summary of the conversion.