...

View Full Version : to find page number of pdf file through javascript



humayunrashid
08-18-2004, 06:08 AM
Hii Guys,
i need to findout the page number of a pdf file through javascript in browser.
if not javascript, then by any other means.

here's the complete problem...
IN BROWSER,

we have 2 frames, LET and RIGHT
In LEFT frame, we've a form and there is a textbox and submit button in it.
In RIGHT frame, we've a pdf file with more that 50 pages.

Now as u scroll up or down in pdf file, the page number shud change automatically in left frame text box.

Any clue, or help will be helpful.

regards
~Humayun Rashid

jbot
08-18-2004, 11:28 AM
in short, no, you can't do that.

really don't think JS can read properties of PDFs, since PDFs are viewed in the browser thru a plugin, ie a viewport for another application (for want of a better explanation).

glenngv
08-19-2004, 06:38 AM
And PDF has already page numbers it, why duplicate it? :confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum