New topic Closed topic
avatar image
1
Append terms and conditions to pdf
By Created , last editted

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:

  1. Created a html file with the terms and conditions.
  2. Stored it at Public Files
  3. Created a text expression variable at the PDF file property; var:terms_and_conditions
  4. Used "read_file("https://assets.bettyblocks.com/...../terms.html")" as expression
  5. 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:

  1. Created a html file with the terms and conditions.
  2. Stored it at Public Files
  3. Created a text expression variable at the PDF file property; var:terms_and_conditions
  4. Used "read_file("https://assets.bettyblocks.com/...../terms.html")" as expression
  5. 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

Answers
Sort by:

This topic is closed.