Solved

Get Title from PDF with ASP/VB Script

Posted on 2004-03-30
3
828 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 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