Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome PDF Viewer API?

Is there any API for interacting with Google Chrome PDF Viewer, pdfium? Like reading page number of current page or setting current page (like Adobe #page=10) or a supporting library like PDFObject for doing these?

like image 737
Ebrahim Byagowi Avatar asked Jan 08 '13 08:01

Ebrahim Byagowi


2 Answers

Chrome PDF Reader supports #page=X as a postfix to the URL in order to jump to a specific page in a PDF document

Say you are reading a page at https://www.example.com/examplePDF#page=4 it opens page 4 directly.

like image 168
Sudarshan Avatar answered Sep 18 '22 19:09

Sudarshan


If your goal is client side pdf viewing using js, you might want to take a look at PDF.js It is even open source.

like image 44
scartag Avatar answered Sep 19 '22 19:09

scartag