Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Get Title from PDF with ASP/VB Script

Posted on 2004-03-30
3
Medium Priority
?
834 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

597 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