Support » Plugin: PDF.js Viewer » How to hide the secondary toolbar?

  • annush674



    I use your awesome plugin in a client’s site.
    He wants that the secondary toolbar (opens in click on the small arrows icon in the side).
    Is it possible?
    Also, the pdf loads slowly. It weights 6MB, has 31 pages. I go to the 4th page and it loads only when I reach it.
    Is there anything I can do to fix it? any setting to set that will help the file to load more quickly?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas McMahon


    This plugin is a wrapper for Mozilla’s PDFjs library so any functionality I add has to be supported there first.

    Are you asking for the sidebar to be open by default? If so, change the “Page Mode” setting on the settings page.

    As for the loading, I’m not sure how to fix that at this time. I’d have to research that.

    Thread Starter annush674



    Thanks for your reply.
    I didn’t understand the answer about the sidebar. I’m talking about the sidebar with the buttons of marking the text, move to first/last page, etc. Its opening button is called #secondaryToolbarToggle. I couldn’t find how to prevent showing it – not in the settings page and not in the shortcode options.

    Another question I have now is about the print button.
    My client uploaded a pdf and then downloaded it from the plugin iframe print button (click on print in the iframe and then “save to PDF”).
    The original file weights 126K, with a very good resolution and quality.
    The downloaded file weights 613KB, and the text and images there are very blurry.

    It seems that when the plugin prepares the PDF for print – it changes it. Can you fix it, or can I set something so the printed (or downloaded via print button) will be the same PDF that was uploaded?
    I see that in the download button (not print) – the PDF that is downloaded is the same as uploaded to the site. same weight, same quality. the problem is only with the print button.

    Thanks in advanced 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.