LoadFromStringA
Document management
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to LoadFromString and string arguments are interpreted using the current SetAnsiMode code page
Similar to the LoadFromFile function, except the data for the PDF document is passed in as a string. If the function succeeds, the loaded document will be selected and its DocumentID can be retrieved using the SelectedDocument function.
If the supplied password is rejected and OnPassword is assigned, the handler may provide another credential or cancel the load
Syntax
Delphi
Function DLLoadFromStringA(InstanceID: Integer; Source: PAnsiChar; Password: PAnsiChar): Integer;
DLL
int DLLoadFromStringA(int InstanceID, const char * Source, const char * Password);
Parameters
| Source | The source data to load the PDF document from |
|---|---|
| Password | The password to load the file |
Return values
| 0 | The PDF could not be loaded |
|---|---|
| 1 | The PDF was loaded from the string successfully |