469,270 Members | 1,155 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Finding the page length in a browser

Relatively new to Java and have a question.

I need to be able to take screenshots of an entire web page. The issue that I'm having is finding the page length of a page displayed within the browser so that I can determine if I need to page down to take the next screen shot. Does anyone know now how to find the actual length of the page displayed in the browser?

From there it's just a matter of dividing the page length by the canvas area of the browser, paging down x number of times and taking a screen shot after each page down.

Any help would be appreciated.

Thanks!
Mar 6 '07 #1
3 1227
DeMan
1,806 1GB
If you insert a go-between that reads the HTML before it gets to the browser, you'll find the length there (although it must also be stored somewhere, necause clicking properties in the menu gives a size too, so there may be a better way.....)
Mar 6 '07 #2
r035198x
13,262 8TB
Relatively new to Java and have a question.

I need to be able to take screenshots of an entire web page. The issue that I'm having is finding the page length of a page displayed within the browser so that I can determine if I need to page down to take the next screen shot. Does anyone know now how to find the actual length of the page displayed in the browser?

From there it's just a matter of dividing the page length by the canvas area of the browser, paging down x number of times and taking a screen shot after each page down.

Any help would be appreciated.

Thanks!
Since I don't see where Java comes into this, I'll move this to the Javascript forum
Mar 7 '07 #3
acoder
16,027 Expert Mod 8TB
See this link.
Mar 7 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by SSG | last post: by
6 posts views Thread by scottyman | last post: by
reply views Thread by bjanaszek | last post: by
12 posts views Thread by =?Utf-8?B?RnJlZU5FYXN5?= | last post: by
7 posts views Thread by =?Utf-8?B?Um9iIFRob21zb24=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.