Open iteles opened 6 years ago
After looking into how this issue may be solved I came across this, wkhtmltopdf.
It is an open source command line tool to render html to pdf. There is an elixir wrapper for this called elixir-pdf-generator. The readme for it comes with instructions for how it can be used with heroku
which would be helpful for us.
I will do some simple spikes using these tools to see how well they can be implemented into the project and update this issue with results.
This project also needed to create PDFs and have used the dependency I found in the comment above. See here for an example of how they implemented it.
@ajburls has shared a mock up of what she would like the PDF to look like. It is in the google drive
THIS IS NOT IN SCOPE FOR SPRINT 9
As per https://github.com/dwyl/bestevidence/issues/266, this is not part of the originally estimated scope for sprint 9. Unfortunately it seems we will almost certainly not have any time left over in this sprint to fit it in.
As a user I would like to be able to save my BEAR to PDF so that I can share it with other people.
Acceptance Criteria
Create PDF
, which should lead the user to this page when clickedOn this page:
Your name
label which saves to the DB on clicking 'Download PDF' buttonBEAR name
label which saves to the DB on clicking 'Download PDF' buttonOrganisation name
label which saves to the DB on clicking 'Download PDF' buttonCreate PDF
button which saves the information on this page and generates a PDF - TBC whether this is to open in the browser window or automatically download