'Declaration
Public Overloads Function SaveToFile( _ ByVal FilePath As String, _ ByVal PackDocument As Boolean _ ) As GdPictureStatus
public GdPictureStatus SaveToFile( string FilePath, bool PackDocument )
public function SaveToFile( FilePath: String; PackDocument: Boolean ): GdPictureStatus;
public function SaveToFile( FilePath : String, PackDocument : boolean ) : GdPictureStatus;
public: GdPictureStatus SaveToFile( string* FilePath, bool PackDocument )
public: GdPictureStatus SaveToFile( String^ FilePath, bool PackDocument )
Parameters
- FilePath
- The file path where the currently loaded PDF document will be saved. If the specified file already exists, it will be overwritten.
You are allowed to overwrite the currently opened PDF document only if the document has been loaded into memory setting the LoadInMemory parameter to true in the previously called GdPicturePDF.LoadFromFile method.
- 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.