PDF Jump to page bookmarklet.

Discussion in 'iPod touch' started by orkai, Mar 31, 2008.

  1. orkai

    orkai New Member

    Mar 24, 2008
    Likes Received:
    Thought others might find this useful.
    To jump to a specific page in a unzoomed PDF document (edit: zoom page to fit screen) in landscape mode add the following bookmark:

    javascript:void(s=parseInt(prompt('Page Number:','')));if(s){window.scrollTo(1,window.innerHeight*(s-1));}

    The idea was based on the fact that webclips on the Home Screen scroll to the page you bookmarked. I was playing with the numbers, but it turns out different PDFs have different values so it is far from perfect. If anybody has a better idea would love to know.

    Edit: changed from 633.865625 to window.innerHeight

Share This Page