Bookmarking PDF in Google Chrome

15,067

Solution 1

As of Chrome version 31+ the page number is displayed by the scroll bar if you scroll at all. I'm not sure when (what version) this feature was added.

Solution 2

Does it automatically update the hash tag to the page number?

If so, you could use document.location.hash as follows:

currentPage = document.location.hash.split("="); currentPage = currentPage[1];
Share:
15,067
rodrigo-silveira
Author by

rodrigo-silveira

Hybrid Software Engineer/Data Scientist I was born and raised a Software Engineer spending most of my career as a full-stack web developer and Android app developer, but have since converted into a Data Scientist slash Machine Learning Engineer. Websites http://www.rodrigo-silveira.com

Updated on June 04, 2022

Comments

  • rodrigo-silveira
    rodrigo-silveira about 2 years

    Lately I've been reading a lot of PDF books using Google Chrome. To go to a particular page, you can simply append #page=23 to the url (as in file:///C:/my_book.pdf#page=23). This is a nice and easy way to bookmark your current page number to continue reading the book later.

    My question:

    What's a way to find out what page you're currently in within the book?

    OR

    What's a Chrome plugin that bookmarks PDF files within your file system?

    I've tried a few extensions, but they don't work unless the book is in a server (as in http:// localhost/my_book.pdf), which is not desired in my case.

    Thanks!