Solved

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

Posted on 2004-08-11
6
1,024 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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

This article is in response to a question here (http://www.experts-exchange.com/Other/URLs/Q_28283850.html) at Experts Exchange. The Original Poster has a scanned signature and wants to make the background transparent so that the signature may be pl…
PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

823 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