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
inputStreamThe readable stream containing the source document.
outputStreamThe writable stream that receives PDF bytes.
optionsConvertOptionsThe conversion options, or null for defaults.
Returns
- ConversionResult
A summary of the conversion.
Exceptions
- ArgumentNullException
inputoroutputis null.- ArgumentException
inputis not readable oroutputis not writable.
Convert(WordDocument, Stream, ConvertOptions?)
Converts a mutable DOM document directly.
public ConversionResult Convert(WordDocument document, Stream output, ConvertOptions? options = null)
Parameters
documentWordDocumentThe document to convert.
outputStreamThe writable stream that receives PDF bytes.
optionsConvertOptionsThe conversion options, or null for defaults.
Returns
- ConversionResult
A summary of the conversion.