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
Solved

Get Title from PDF with ASP/VB Script

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Auto Submit on dropdown box 3 79
Error viewing ASP page 12 174
Downside of adding characters set in ASP pages 6 29
edit .asp files 5 31
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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