Move scroll from <iframe>, <embed> or <Object> with PDF

Asked

Viewed 155 times

0

I have a reading project online, I’m using the tag iframe to display the pdf page. I need to save the position of the scroll and restore at next reading. Sample snippet:

 <html>
    <head>
       <script src='jquery.js'></script>

    </head>
    <body>
    <iframe src='documento.pdf' width='800px' heigth='600px'>
    </body>
    </html>

You could use the embed tag or the Object tag, instead of iframe, it’s the same thing??

  • Two questions: PDF/iframe is in the same domain? do you want to save it where? (server, cookie, or other way)

  • Yes the document is in the same domain. I will store it on the server.

  • With Adobe Reader plugin, jsPDF might be better

  • But isn’t jsPDF to generate PDF? I already have the ebooks, I just want to move the scroll of iframe with pdf, but I found that this way will not be possible, I will try another solution.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.