LoadFromString

Document management

Description

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.

Syntax

Delphi

function TPDFlib.LoadFromString(Const Source: AnsiString; Const Password: WideString): Integer;

ActiveX

Function PDFlib::LoadFromString(Source As String, Password As String) As Long

DLL

int DLLoadFromString(int InstanceID, char * Source, wchar_t * 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