Using the Component

Installing XpdfInfo

Before using the XpdfInfo component, it must be registered on your system. Normally the installer will take care of that for you. If you need to register manually, you can run the command:
regsvr32 XpdfInfo.dll

Referencing XpdfInfo

To use the XpdfInfo component in a Visual Studio project, select the "References..." command on the "Projects" menu, go to the "COM" tab, and check the box next to XpdfInfo.

Instantiating an XpdfInfo Object

The code needed to instantiate an XpdfInfo object depends on your development environment. In VB6:
Dim pdf As XpdfInfo.XpdfInfo Set pdf = New XpdfInfo.XpdfInfo
In ASP VBScript:
Set pdf = Server.CreateObject("Xpdf.XpdfInfo")
In VB.net:
Dim pdf As XpdfInfo.XpdfInfo pdf = New XpdfInfo.XpdfInfo()
In C#:
XpdfInfo.XpdfInfo pdf; pdf = new XpdfInfo.XpdfInfo();
In Delphi:
var pdf: IXpdfInfo; begin pdf := CoXpdfInfo_.Create;

Working with XpdfInfo

Once you've instantiated an XpdfInfo object, you can load PDF files and retrieve metadata. Typical code looks like this:
pdf.loadFile "c:/test/file.pdf" title = pdf.title MsgBox "title: " & title

VBScript

VBScript does not support functions with output arguments, so some COM functions will not be available from VBScript.