Bill's notes/research as this plugin is developed start here.
Example of inserting image via jsPDF suggests that I don't want to get mixed up rendering images into jsPDF. Need to get a canvas-based solution working.
html2canvas continues to be the phind-recommended solution most often recommended, but it seems to need the canvas to be non-zero sized, thus the forays below into OffscreenCanvas
OffscreenCanvas seems like it will work, but still getting exceptions trying to fetch the images to be inserted from plugin subdomain without running afoul of CSP restrictions
https://github.com/niklasvh/html2canvas/pull/1863/files might suggest a path to get past offscreen canvas throwing exception about drawImage
Later todo
Swap back to using actual note content instead of sample content with unicode & image (two functionalities not natively easy with PDFs)
Settings
name | Note2PDF Experimental |
description | Download a note as a PDF |
icon | picture_as_pdf |
instructions | This plugin provides an alternative to extracting PDFs from notes via the "Print method." Read more about exporting notes to PDFs at our help page. |
"I don't always generate PDFs, but when I do, I prefer Note2PDF." --anon
Some Unicode text: ©
May 18. v1.0 Initial implementation. Download still throwing Javascript errors that appear to need relaxed domain permissions.