discipl / waardepapieren

project for consortium of municipalities digitizing PoE services
GNU General Public License v3.0
7 stars 3 forks source link

Download pdf feature #67

Closed pimotte closed 5 years ago

pimotte commented 5 years ago

Note that this is untested in the e2e test. This is due to the fact that we use a library to generate it, which means we can't really hook into the process in a solid way, and cypress not supporting this yet (see https://github.com/cypress-io/cypress/issues/949)

Fixes #59

pimotte commented 5 years ago

As far as I know, https://www.npmjs.com/package/canvas2pdf is the only candidate to render a pdf from a canvas in a way that is not just embedding the picture. No project has a dependency on this module, which made me hesitant to use it. If tooltips are indeed a needed feature at some point, we can switch to this and see if it works