By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,729 Members | 1,523 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,729 IT Pros & Developers. It's quick & easy.

detect pdf properties using javascript, possible?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.