Support » Plugin: WordPress PDF Light Viewer Plugin » Link to the selected PDF page with a scroller to the top of the page

  • Resolved sertarianf

    (@sertarianf)


    I want to add links to the pages at the bottom of the PDF document so that the selected page is scrolled on the top of the page. Since the usual click on the link # page / 17 in the PDF document was changed to 17, but you do not see a spilled document. It is necessary that the page should go up to the document.

Viewing 1 replies (of 1 total)
  • Plugin Author antongorodezkiy

    (@antongorodezkiy)

    Hello @sertarianf,

    You can try to use the following javascript code to achieve this:

    jQuery('.js-page-thumbnail').on('click', function() {
      jQuery([document.documentElement, document.body]).animate({
        scrollTop: jQuery('.js-pdf-light-viewer').offset().top
      }, 1000);
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Link to the selected PDF page with a scroller to the top of the page’ is closed to new replies.