[C#] Stream GetStream(Doc
doc) [Visual
Basic] Function GetStream(doc As Doc) As Stream
may throw
Exception()
Params
Name
Description
doc
The document.
return
The PDF document as a stream.
Notes
The method writes the document in a conforming PDF format
according to the Conformance
property. Any conformance error is reported in the Errors property after the
method finishes.
Because of the CLR limit of 2 GB per object, the GetData method cannot return the data
for a document larger than 2 GB. Use this method for documents
larger than 2 GB. Dispose of the returned stream as soon as it
is no longer needed for small memory footprint.