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 DOM document.- ResourceLimitExceededException
The output exceeded MaxOutputBytes.
- UnsupportedFeatureException
Strict mode was requested and content could not be represented.