Writes the created file from memory to a .NET stream.
outputStream
The output stream to be saved.
The PDF Compressor object normally creates the compressed PDF document file in memory. It can add as many pages as required to the file. Once the PDF file in memory is complete, call this method to write the file to a stream, before calling the Dispose method.
For more information, refer to Creating a Compressed PDF File.
Use Write(string) to write the result to a disk file.