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 that the PDF document data is passed as a string. If the function succeeds, the loaded document is 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

SourceThe source data to load the PDF document from
PasswordThe password to load the file

Return values

0The PDF could not be loaded The PDF was loaded from the string successfully
1