csvalpha / sofia

S.O.F.I.A. - Streepsysteem der C.S.V. Alpha
https://streep.csvalpha.nl
MIT License
5 stars 2 forks source link

Create invoice button throws error that it cannot create a PDF #842

Open Ellen-Wittingen opened 1 year ago

Ellen-Wittingen commented 1 year ago

How to reproduce

  1. Go to http://localhost:5000/invoices
  2. Click on any Factuur versturen button in invoice list

Expected behaviour

A pdf file of the invoice should be created and sent to the emailadres

Current behaviour

Explain what currently happens.

Error message from (I think) the wickedpdf gem: Error: PDF could not be generated!

image

wilco375 commented 1 year ago

You need to have wkhtmltopdf installed on your PC in order for this to function. After this, it should work. Maybe we should add this to the readme.