bigfunctions > html2pdf
html2pdf¶
Signature
html2pdf(html)
Description
Convert html
to pdf
encoded as a base64 string.
This function is useful to combine with
send_mail
if you want to send a personnalized pdf to some people.To have a beautiful pdf, we advise you to get inspired by this invoice template.
Examples
select bigfunctions.eu.html2pdf("<h1>Love It!</h1>")
select bigfunctions.us.html2pdf("<h1>Love It!</h1>")
select bigfunctions.europe_west1.html2pdf("<h1>Love It!</h1>")
+------------------+
| pdf_base64 |
+------------------+
| JVBERi0xLjQK.... |
+------------------+