'Declaration
Public Overloads Function SaveToFile( _ ByVal FilePath As String, _ ByVal PackDocument As Boolean, _ ByVal Linearize As Boolean _ ) As GdPictureStatus
public GdPictureStatus SaveToFile( string FilePath, bool PackDocument, bool Linearize )
public function SaveToFile( FilePath: String; PackDocument: Boolean; Linearize: Boolean ): GdPictureStatus;
public function SaveToFile( FilePath : String, PackDocument : boolean, Linearize : boolean ) : GdPictureStatus;
public: GdPictureStatus SaveToFile( string* FilePath, bool PackDocument, bool Linearize )
public: GdPictureStatus SaveToFile( String^ FilePath, bool PackDocument, bool Linearize )
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 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.
- Linearize
- Specifies if the PDF document should be linearized when saving, that means if the PDF document should enable Fast Web View mode.
Set this parameter to true to enable optimized save for Fast Web View mode.
If you set this parameter to false, the PDF will not be optimized for Fast Web View mode when saving.
Return Value
We strongly recommend always checking this status first.