Solved

Get Title from PDF with ASP/VB Script

Posted on 2004-03-30
3
830 Views
Last Modified: 2009-06-04
Hi Experts,

I need to get the title from a pdf (not the filename!) with ASP or VB Script... Does anyone knows a solution for that problem?

Greets & Thanks,
Andy
0
Comment
Question by:Snody
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
deighc earned 500 total points
ID: 10713353
PDF is a proprietary document format and it has it's own document object model so I think it's safe to assume that you'll have to use a 3rd-party component to do this. There's no way to do this directly with script.

I've used ActivePDF Toolkit many times and it lets you access the title of document thru the .title property (along with lots of other info about the document):

<%

set pdfToolkit= Server.CreateObject("APToolkit.Object")

if pdfToolkit.GetPDFInfo("<full path to pdf document>") = 0 then
   Response.Write "Author : " & pdfToolkit.Author & "<br>"
   Response.Write "Subject : " & pdfToolkit.Subject & "<br>"
   Response.Write "Keywords : " & pdfToolkit.Keywords & "<br>"
   Response.Write "Creator : " & pdfToolkit.Creator & "<br>"
   Response.Write "Producer : " & pdfToolkit.Producer & "<br>"
   Response.Write "CreateDate : " & pdfToolkit.CreateDate & "<br>"
   Response.Write "ModDate : " & pdfToolkit.ModDate & "<br>"
   Response.Write "CustomDocInfo : " & pdfToolkit.CustomDocInfo & "<br>"
   pdfToolkit.CloseInputFile
else
  ' Couldn't find PDF file
end if

set pdfToolkit= nothing
%>
0
 

Author Comment

by:Snody
ID: 10713507
Is there no free software which can do this? ActivePDF Toolkit looks great, but it's damn expensive...

Thanks anyway,
Andy
0
 
LVL 15

Expert Comment

by:deighc
ID: 10713559
> ActivePDF Toolkit looks great, but it's damn expensive

True. But at the risk of sounding like I work for them there stuff is very good. Very fast, well documented and easy to use.

There are many other PDF components that you can use in an ASP page. Some are cheaper than others but I doubt you'll find a free one because any software that modifies or generates PDF's has to pay a royalty to Adobe.

Try this search on Google:

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=ASP+pdf+component
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 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