You’ll need javascript to load a library like PDF.js in order to accomplish this. There are at least two possible approaches:
- Relax the HTML Purifier restrictions in config.inc.php and in the code to allow entry of javascript in the text editor.
- Prior discussion: Put video on first page ojs3
- Load some custom javascript on every page via the Custom Headers plugin, and use that javascript to look for a condition (like an
a
tag with extra data attributes) on the page you want to render the PDF.- Custom Headers documentation with Twitter example :https://docs.pkp.sfu.ca/learning-ojs/en/settings-website#custom-header-plugin