473,660 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2376
Very much doubt it dude, you'll need some kind of com object or similar to
achieve this.

Cheers, @sh

"mscir" <ms***@usa.co m> wrote in message
news:be******** *************** ***@posting.goo gle.com...
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*****@agrico reunited.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*****@agrico reunited.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*****@agrico reunited.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*****@agrico reunited.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*****@agrico reunited.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*****@agrico reunited.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
7199
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
1742
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 about the static properties of global RegExp object, ie, RegExp.lastMatch, RegExp.leftContext, RegExp.rightContext, and all those RegExp.$x properties. I lloked up the ECMA-262 PDF and to my surprise realized that they are not included into the...
23
6505
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 know if Window.Open has been redefined? BACKGROUND:
3
9321
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, we want to detect if our software is installed on the client machine and if so we want to provide more access, or else we want to give the user a limited access to the web site Thanks in Advance
8
2381
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. Should I save it to a database or is it easier to save it to a text file?
4
2937
by: mscir | last post by:
Is it possible to detect whether a protocol client-side on any given user's machine? Thanks, Mike
4
1572
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 their monitor set to 800 x 600. Any help would be greatly appreciated! Thanks! Joy
1
1342
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 ) I want to find a safe way..not popup safe tip.. by the way, the software is developed myself.
8
376
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The « navigator » object contains strings which specify the browser and version; however, this is in general not very genuine. Mozilla (and therefore Netscape 6+) allows this to be freely set, and Opera and IE allow it to be modified. There are...
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8542
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8630
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1740
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.