LoadFromFile
Document management
Description
Loads a PDF document from a file on disk. If the function succeeds, the loaded document will be selected and its DocumentID can be retrieved using the SelectedDocument function.
Syntax
Delphi
Function TPDFlib.LoadFromFile(Const FileName, Password: WideString): Integer;
ActiveX
Function PDFlib::LoadFromFile(FileName As String, Password As String) As Long
DLL
int DLLoadFromFile(int InstanceID, const wchar_t * FileName, const wchar_t * Password);
Parameters
| FileName | The path and file name of the file to load. |
|---|---|
| Password | The password to open the file |
Return values
| 0 | The file could not be read or processed. Use the LastErrorCode function to determine the cause of the failure. |
|---|---|
| 1 | The file was loaded successfully |