SaveToFile
Document management
Description
Saves the selected document to a file on disk.
Syntax
Delphi
Function TPDFlib.SaveToFile(Const FileName: WideString): Integer;
ActiveX
Function PDFlib::SaveToFile(FileName As String) As Long
DLL
int DLSaveToFile(int InstanceID, const wchar_t* FileName);
int DLSaveToFileA(int InstanceID, const char* FileName);
Parameters
| FileName | The name of the file to create |
|---|
Return values
| 0 | The file could not be created or the document could not be saved |
|---|---|
| 1 | The file was created successfully |
Remarks
Large RC4, AES-CBC, and AES-GCM encrypted streams are transformed directly into the output file through bounded chunks while their in-memory source bytes remain unchanged, so repeated saves do not require full ciphertext and plaintext restoration copies
The selected font, text size, colours, line settings and content layer are the same after the save as before it, so drawing can continue on the selected page without choosing them again