
Append terms and conditions to pdf
Hey,
I would like to append terms and conditions to several files in the Betty Blocks application; quotes, invoices etc. Those documents are generated using PDF templates.
What I've done now:
- Created a html file with the terms and conditions.
- Stored it at Public Files
- Created a text expression variable at the PDF file property; var:terms_and_conditions
- Used "read_file("https://assets.bettyblocks.com/...../terms.html")" as expression
- Used liquid to insert the content of the file into the template; {{terms_and_conditions}}
I think this is pretty close to what it should be, but it isn't working. No errors are shown. I've also tried using a HASH variable. In that case Liquid errors about the content not being valid JSON.
What would be the best approach to do this?
Cheers
Hey,
I would like to append terms and conditions to several files in the Betty Blocks application; quotes, invoices etc. Those documents are generated using PDF templates.
What I've done now:
- Created a html file with the terms and conditions.
- Stored it at Public Files
- Created a text expression variable at the PDF file property; var:terms_and_conditions
- Used "read_file("https://assets.bettyblocks.com/...../terms.html")" as expression
- Used liquid to insert the content of the file into the template; {{terms_and_conditions}}
I think this is pretty close to what it should be, but it isn't working. No errors are shown. I've also tried using a HASH variable. In that case Liquid errors about the content not being valid JSON.
What would be the best approach to do this?
Cheers
Login to reply