as we all know pdfium is now part of chrome, and this is a nice pdf render, but i am confronted with some problem.
the code is as follows, the default page is 12 as sepcified by the #page=12 assignment, when this page is opened, i could jump or navigate to other pages, but how to get the page number using javascript? is there any js api i can use to the get the page number?
<head>
<style type="text/css">
.pdf {
width: 100%;
height: 99%;
}
</style>
</head>
<div>
okok
</div>
<iframe class="pdf" src="http://127.0.0.1/test.pdf#page=12" frameborder="0"></iframe>
I was finding the JS API too. On http://src.chromium.org/viewvc/chrome/trunk/src/pdf/instance.cc
there are the following methods if someone need it:
an example to get the current page is like that