Show Header, Footer and Side Bar While Viewing PDF

Hi,

I am using OJS 3.5.0-4, Manuscript Theme, PDF viewer plugin enabled.

While viewing PDF, it stretches 100%, without header, footer and the sidebar.

Is there a way, where header, footer and the sidebar are visible while viewing PDF.

Thank You

Hi @Psek,

I wasn’t able to replicate this - can you post a screenshot of what you’re seeing?
And, what version of the PDF viewer plugin are you running?

-Roger
PKP Team

Hi @rcgillis

The PDF viewer is working fine. I am asking for a possibility of customization of PDF View.

Whenever PDF is clicked, it takes the full window to display the PDF (With out Header, Footer, and Sidebar). That’s normal.

I am asking, is there a possibility that PDF can be viewed along with Header, Footer and Sidebar (Without PDF occupying the Full width).

Thank You

Hi @Psek,

Thanks for clarifying. So far as I can tell, there is not really any options to modify the display of PDF.js in the plugin settings within OJS. The plugin just displays the pdf.js viewer in its default state, as it is shipped as part of the standard pdfJSviewer. Any alterations would likely involve potentially altering the plugin, or possibly pdf.js viewer itself. PDF.js is a separate, so that does appear to be feasible (e.g. see here ), but I would exercise caution if you were to go this route, it may involve creating a fork of the plugin, and tweaking the pdf.js library that’s included within the plugin. A potential risk that you would run into is that when you update a modified version of the plugin, it would be overwritten with any future upgrades. I suppose one thing you could try is tweaking the CSS. PDF.js has it’s own separate CSS, but I’m not sure if a theme OJS would overwrite it or not - you’d have to experiment. Of course, I’ve not tested any of this out; these are just suggestions that you’d have to try. If you have a development/sandbox instance, that might be the appropriate place for it, but, as I stated earlier, modifications of this nature come with risks and the requirement to account for modifications when you go to upgrade in the future.

-Roger

Hi @Psek
I would recommend against doing this update. Years ago, I tried to add header, footer and sidebar to the pdf.js viewer. While the GUI change worked, printing failed.