Table of Contents

Method GeneratePdf

Namespace
DocWright.Composition
Assembly
DocWright.Composition.dll

GeneratePdf(Stream, ConvertOptions?)

Renders the composition to PDF.

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

Parameters

output Stream

The writable stream that receives the PDF.

options ConvertOptions

The conversion options, or null for defaults.

Returns

ConversionResult

A summary of the conversion.

Exceptions

ArgumentNullException

output is null.

GeneratePdf(string, ConvertOptions?)

Renders the composition to a PDF file.

public ConversionResult GeneratePdf(string path, ConvertOptions? options = null)

Parameters

path string

The output path.

options ConvertOptions

The conversion options, or null for defaults.

Returns

ConversionResult

A summary of the conversion.

Exceptions

ArgumentNullException

path is null.