'Declaration
Public Overloads Function SaveToStream( _ ByVal Stream As Stream, _ ByVal PackDocument As Boolean _ ) As GdPictureStatus
public GdPictureStatus SaveToStream( Stream Stream, bool PackDocument )
public function SaveToStream( Stream: Stream; PackDocument: Boolean ): GdPictureStatus;
public function SaveToStream( Stream : Stream, PackDocument : boolean ) : GdPictureStatus;
public: GdPictureStatus SaveToStream( Stream* Stream, bool PackDocument )
public: GdPictureStatus SaveToStream( Stream^ Stream, bool PackDocument )
Parameters
- Stream
- A Stream object where the currently loaded PDF document will be saved to. This Stream object must be initialized before it can be sent into this method and it should remain open for subsequent use.
- PackDocument
- Specifies if the toolkit has to pack the current document before the save process to reduce its size.
Set this parameter to true if you want to pack the PDF document before saving. Please note that the whole saving process can be as a result slower with some documents.
If you set this parameter to false, the PDF document will remain unpacked after the save process.
Return Value
We strongly recommend always checking this status first.