LoadFromFileA
Document management
Description
O sufixo A indica o ponto de entrada ANSI (char) da DLL; a superfície ActiveX/COM expõe apenas a forma Unicode. O comportamento é idêntico ao de LoadFromFile e os argumentos de cadeia de caracteres são interpretados com base na página de código atual definida por SetAnsiMode
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 DLLoadFromFileA(InstanceID: Integer; FileName, Password: PAnsiChar): Integer;
DLL
int DLLoadFromFileA(int InstanceID, const char * FileName, const char * 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 |