Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bookstack PDF Embed plugin
- ## Setup
- On `/settings` page *Custom HTML head content* add paste in the script/style above
- ## Usage
- The setup will result in a **PDF button** in the toolbar whenever you open the editor.
- Pressing the button pops up a dialog, where you may enter the URL to the PDF.
- This in turn will add a:
- ```
- <p> <canvas data-pdfurl="[URL]"></canvas></p>
- ```
- to your content, which in edit mode renders as a simple gray block.
- In view mode, it will load the referenced PDF and render it on canvas elements using the pdfjs library.
Add Comment
Please, Sign In to add comment