Getting Started: ActiveX Edition
Installation
After running the installer the DebenuPDFLibraryAX1011.dll and DebenuPDFLibrary64AX1011.dll files will be placed into the ActiveX folder, inside the main installation folder you chose during installation.
The default installation folder is C:\Program Files\Debenu\PDF Library\ActiveX\
Registering the 32-bit ActiveX DLL
Use the regsvr32 command to register Debenu Quick PDF Library ActiveX Edition. Open a command prompt with administrator priviledges and enter the command:
Replace the path in the above command with the folder you chose during installation.
For 64-bit Windows, the regsvr32.exe in %systemroot%\SysWOW64\ should be used.
Registering the 64-bit ActiveX DLL
Use the regsvr32 command to register Debenu Quick PDF Library ActiveX Edition. Open a command prompt with administrator priviledges and enter the command:
Replace the path in the above command with the folder you chose during installation.
Class name
The class name of this release of Debenu Quick PDF Library ActiveX Edition is:
DebenuPDFLibraryAX1011.PDFLibrary
The class name of this release of Debenu Quick PDF Library 64-bit ActiveX Edition is:
DebenuPDFLibrary64AX1011.PDFLibrary
Instantiating the class
Use the CreateObject or equivalent function in your development environment to create the Debenu Quick PDF Library object.
The first function you should call is the UnlockKey function, passing it your license key.
Here is a Visual Basic example:
Dim PDFLibrary As DebenuPDFLibraryAX1011.PDFLibrary
Set PDFLibrary = CreateObject("DebenuPDFLibraryAX1011.PDFLibrary")
If PDFLibrary.UnlockKey("your license key here") = 1 Then
Call PDFLibrary.DrawText(100, 500, "Hello from Visual Basic")
Call PDFLibrary.SaveToFile("C:\Docs\HelloFromVB.pdf")
End If
Set PDFLibrary = Nothing
End Sub
Unregistering the ActiveX DLL
Use the regsvr32 /u command to unregister Debenu Quick PDF Library ActiveX Edition if necessary.