Using the Component

Installing XpdfPS

Before using the XpdfPS 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 XpdfPS.dll

Referencing XpdfPS

To use the XpdfPS 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 XpdfPS.

Instantiating an XpdfPS Object

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

Working with XpdfPS

Once you've instantiated an XpdfPS 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