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, wchar_t * FileName, wchar_t * Password);

Parameters

FileNameThe path and file name of the file to load.
PasswordThe password to open the file

Return values

0The file could not be read or processed. Use the LastErrorCode function to determine the cause of the failure.
1The file was loaded successfully