Guest User

Untitled

a guest
Jul 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # Bookstack PDF Embed plugin
  2.  
  3. ## Setup
  4.  
  5. On `/settings` page *Custom HTML head content* add paste in the script/style above
  6.  
  7. ## Usage
  8.  
  9. The setup will result in a **PDF button** in the toolbar whenever you open the editor.
  10.  
  11. Pressing the button pops up a dialog, where you may enter the URL to the PDF.
  12.  
  13. This in turn will add a:
  14. ```
  15. <p>&nbsp;<canvas data-pdfurl="[URL]"></canvas></p>
  16. ```
  17. to your content, which in edit mode renders as a simple gray block.
  18.  
  19. 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