LoadFromVariant
Description
Loads a PDF document from a byte array stored as a Variant type. This function is only available in the ActiveX editions of the library. If the function succeeds, the loaded document will be selected and its DocumentID can be retrieved using the SelectedDocument function.
Syntax
Delphi
This function is not available in the Delphi edition
ActiveX
Function QuickPDF0813.PDFLibrary::LoadFromVariant(Source As Variant,
Password As String) As Long
DLL
This function is not available in the DLL edition
Parameters
| Source | The byte array to load the PDF document from |
| Password | The password to load the file |
Return values
| 0 | The document could not be loaded. Check the result of the LastErrorCode function for more information. |
| 1 | The document was loaded successfully |