Copy link to clipboard
Copied
Hi,
The website I currently work on has a section where I need to send a schedule to customers. I fill the fields (activity, start time, end time, etc..) and it generates a schedule. Right now It sends this schedule as an HTML email. It looks really nice, but my boss wants that is sends a PDF attachment instead. I looked on the web for answers but couldn't find anything satisfying.
Any ideas ?
Thanks
Copy link to clipboard
Copied
did you give a try to those api
https://github.com/dompdf/dompdf
or older
https://github.com/Api2Pdf/api2pdf.php
https://github.com/spipu/html2pdf
based on the two previous one
Copy link to clipboard
Copied
Php To PDF can do this very simply. Does your hosting server support PHP scripts?
Copy link to clipboard
Copied
Yes it supports PHP scripts.
5$ for each 125 pdf... This can get very expensive !
Copy link to clipboard
Copied
$5 for what? Where did you see that?
Copy link to clipboard
Copied
Taken from their site :
How much does each PDF generation cost?
Each PDF generation costs 1 token. Every account starts with 30 tokens and more can be purchased in small or bulk increments for as little as under a penny each.
Copy link to clipboard
Copied
yes php to pdf is not free, it's a web services. I tried once to use it, but as soon as the generration was in process token was needed. perhaps that I did miss a step somewhere, but without token PDF was not generated
that's why I went on different other API listed above.
Copy link to clipboard
Copied