Link to home
Start Free TrialLog in
Avatar of mrknapp
mrknapp

asked on

ASP.NET - Creating an AcroExch.PDDOC object returns an Active X error

Hi folks -

I'm a pretty basic ASP.NET programmer and use a text editor to create applications, not Visual Studio.NET.

I'm trying to create an AcroExch.PDDOC object and am getting the "Cannot Create ActiveX Component" error.

I've got Acrobat 5.0 installed, as well as the 5.0 SDK. I used "Tblimp.exe" to create "Acrobat.dll" from the "Acrobat.tlb" in the SDK. I moved the "Acrobat.dll" to the "bin" directory of the ASP.NET application.

Code reads:

<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="ACROBAT" %>
<%@ Assembly Name="ACROBAT" %>
<%@ Page Language="VB" Debug="true" %>
Dim pdfDoc As Object
pdfDoc = CreateObject("AcroExch.PDDoc")

Any advice is much appreciated!

Mike Knapp

Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

ASP implies a web setup: Acrobat is not licensed (and not technically feasible) for server use. You have to switch to a 3rd party tool if you want to do PDF processing on a web server.

What do you want to do with the PDF file? I may be able to give you some pointers about possible 3rd party products.
Avatar of mrknapp
mrknapp

ASKER

Thanks for the feedback.

I'm looking for two pieces of information from the PDF file: the number of pages in the document & an extraction of an executive summary in the report. We have 1700+ reports.

That's about it.

I suppose the ultimate might be to have that information stored in an XML document, but I'd  be happy with anything.

ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
BTW: Acrobat would also not help you with the second part, so you are not missing out on any features that you would have access to only with Acrobat.
Thanks. This was easy :-)
I noticed that this was your first question on EE. Let me welcome you to the site. I hope you get the response you've expected from this site.

Have fun, and thanks again for the quick turnaround.
Avatar of mrknapp

ASKER

Great, thanks for the information.