Method Write
Write(IDocWrightDocument, Stream, DocumentWriteOptions, IConversionDiagnostics)
Writes the document to the stream.
public void Write(IDocWrightDocument document, Stream output, DocumentWriteOptions options, IConversionDiagnostics diagnostics)
Parameters
documentIDocWrightDocumentThe document to write.
outputStreamThe stream to write to, forward-only.
optionsDocumentWriteOptionsThe write options.
diagnosticsIConversionDiagnosticsThe diagnostics sink.
Exceptions
- ArgumentNullException
A required argument is null.
- ArgumentException
documentis not a DocWright document.- ResourceLimitExceededException
The output exceeded a configured limit.
- UnsupportedFeatureException
Strict mode, and the document used a construct RDL cannot carry.