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
outputStreamThe writable stream that receives the PDF.
optionsConvertOptionsThe conversion options, or null for defaults.
Returns
- ConversionResult
A summary of the conversion.
Exceptions
- ArgumentNullException
outputis null.
GeneratePdf(string, ConvertOptions?)
Renders the composition to a PDF file.
public ConversionResult GeneratePdf(string path, ConvertOptions? options = null)
Parameters
pathstringThe output path.
optionsConvertOptionsThe conversion options, or null for defaults.
Returns
- ConversionResult
A summary of the conversion.
Exceptions
- ArgumentNullException
pathis null.