473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

detect pdf properties using javascript, possible?

I would like to generate a page of links including some of the pdf
properties (title, author, version, etc.) for a folder full of pdf's.
Is this possible from Javascript?

TIA,
Mike
Jul 23 '05 #1
4 2354
Very much doubt it dude, you'll need some kind of com object or similar to
achieve this.

Cheers, @sh

"mscir" <ms***@usa.com> wrote in message
news:be**************************@posting.google.c om...
I would like to generate a page of links including some of the pdf
properties (title, author, version, etc.) for a folder full of pdf's.
Is this possible from Javascript?

TIA,
Mike

Jul 23 '05 #2
mscir wrote:
I would like to generate a page of links including some of the pdf
properties (title, author, version, etc.) for a folder full of pdf's.
Is this possible from Javascript?

TIA,
Mike


Only if you are talking about JavaScript running under the Netscape (Sun
ONE) Enterprise Web server (and possibly other Web servers) or JScript
running under IIS (and possibly other Web servers).

If you mean client-side JavaScript running in a Web browser in the
default security environment without any help from the server, no, it can
not be done in JavaScript.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #3
Grant Wagner <gw*****@agricoreunited.com> wrote
mscir wrote:
I would like to generate a page of links including some of the pdf
properties (title, author, version, etc.) for a folder full of pdf's.
Is this possible from Javascript?


Only if you are talking about JavaScript running under the Netscape (Sun
ONE) Enterprise Web server (and possibly other Web servers) or JScript
running under IIS (and possibly other Web servers).

If you mean client-side JavaScript running in a Web browser in the
default security environment without any help from the server, no, it can
not be done in JavaScript.
| Grant Wagner <gw*****@agricoreunited.com>


Yes, javascript under IIS/ASP. I'm looking around with google for a
component but no luck so far.

Thanks,
Mike
Jul 23 '05 #4
mscir wrote:
Grant Wagner <gw*****@agricoreunited.com> wrote
mscir wrote:
I would like to generate a page of links including some of the pdf
properties (title, author, version, etc.) for a folder full of pdf's.
Is this possible from Javascript?


Only if you are talking about JavaScript running under the Netscape (Sun
ONE) Enterprise Web server (and possibly other Web servers) or JScript
running under IIS (and possibly other Web servers).

If you mean client-side JavaScript running in a Web browser in the
default security environment without any help from the server, no, it can
not be done in JavaScript.
| Grant Wagner <gw*****@agricoreunited.com>


Yes, javascript under IIS/ASP. I'm looking around with google for a
component but no luck so far.

Thanks,
Mike


I'll assume you already know how to read the contents of a directory and
display links to the file names. If you don't know how to do that, get that
working first.

As for the component of which you speak, you're right, a few searches didn't
turn up anything. However, I guess if I had to do this, I'd start at: <url:
http://partners.adobe.com/asn/tech/p...ifications.jsp />

Once you know the format of the PDF file (which doesn't appear to be all that
complicated), it should be a relatively simple matter to obtain the information
you need. Section 10.2 contains information about the Metadata, where it is
located, and how it is structured. It appears you'll also need to read the
sections on understanding the "document information dictionary" and "metadata
stream".

The other alternative I found was to let the IIS Index Server index the
documents, then query it for the information you require. An example of that
(complete with code for ASP.NET) is here: <url
http://forums.aspfree.com/t19740/s.html />.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: wj | last post by:
Hi all, Is it possible to detect wether a user has enable javascript is his browser or not within PHP? Thanx, WJ
1
by: Pavils Jurjans | last post by:
Hallo, I yesterday was browsing the book, JavaScript The Definitive Guide (4th ed), which is, unquestionably, the best reference book for JS. To my surprise, I didn't find any documentation...
23
by: David McCulloch | last post by:
QUESTION-1: How can I detect if Norton Internet Security is blocking pop-ups? QUESTION-2a: How could I know if a particular JavaScript function has been declared? QUESTION-2b: How could I...
3
by: Raj | last post by:
Hi All, Is it possible to detect if a client software is installed on a machine using browser javascript. we are building a web/windows software and when the user logs into the web application,...
8
by: Brent | last post by:
Does anyone know the best way to detect and track a visitors screen resolution. I know the javascript to detect the users resolution but I am a bit confused on the best way to track and save this....
4
by: mscir | last post by:
Is it possible to detect whether a protocol client-side on any given user's machine? Thanks, Mike
4
by: simchajoy2000 | last post by:
Hi, Is it possible to programmatically detect what display settings the user has on their monitor with ASP.NET? I need to be able to resize some of the things on my webpage if the user has...
1
by: madmanahong | last post by:
How to detect a software has been setup safely? First, I think to do it throught registry, I can read from registry if exist a key to detect. but it's not safely...IE popup a tip. ( XP SP2 ) ...
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.