Debenu Quick PDF logo

LoadFromFile

Document management

Description

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 TDebenuPDFLibrary1811.LoadFromFile(FileName, Password: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::LoadFromFile(FileName As String,
  Password As String) As Long

DLL

int DPLLoadFromFile(int InstanceID, wchar_t * FileName, wchar_t * 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

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport