ERP5 PDF Form
ERP5 PDF Form are a Zope object that allows to fill a PDF Form using TALES Expressions for each cell.
For a quick starter guide, refer to the HowToCreatePdfForm.
PDF Form needs pdftk to work. If your version of zope/python hangs when calling it, you can try pdftk-emulation.
"cell" in TALES context
There is an additional key in TALES context, cell, which can be used to get the value of another cell. This can be very handy for calculations, because you can use it to create a total.
Cell name |
TALES |
a |
python: 3 |
b |
python: 2 |
c |
python: cell['a'] + cell['b'] |
This should print 5 in cell c.
The following example :
Cell name |
TALES |
a |
python: cell['b'] |
b |
python: cell['a'] |
Will obviously not work, but circular references are checked and a nice Exception is raised.
Page Range Method
TODO
Cell Format Method
TODO