Write PDF document to stream in declaritive or Event-Driven mode.
It is the responsibility of the client (caller) to Flush and Close the .
Please check the turorial on differences in the Push (normal) and Pull (low resource, event driven) mode generation. There are some features that change behavior when using Pull-mode.
public Void Write(Stream stream, Boolean eventDrivenMode)