Solved

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

Posted on 2004-08-11
6
1,018 Views
Last Modified: 2008-01-09
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

0
Comment
Question by:mrknapp
  • 4
  • 2
6 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11779219
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.
0
 

Author Comment

by:mrknapp
ID: 11779410
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.

0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 11779467
Getting the number of pages is simple. You can do this with pretty much any tool. There are standalone tools (e.g. one comes with XPdf - http://www.foolabs.com/xpdf/). Another option is to use something like iText.NET (http://www.ujihara.jp/iTextdotNET/en/)

Extracting the executive summary may be impossible: Extracting text is one of the most complicated things you can do with PDFs. The XPdf tools can also extract text from a PDF. It's up to you to identify what part is the executive summary. There is very likely nothing in the PDF that would identify the text section as "executive summary".
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11779472
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.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11779486
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.
0
 

Author Comment

by:mrknapp
ID: 11779488
Great, thanks for the information.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (http://www.experts-exchange.com/Programming/Installation/Q_28396542.html)…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now