Script

Template

To build PDF with dynamicaly generated content, we use templates.

Template

To build PDF with dynamicaly generated content, we use templates.

template_get()

Get one or more template to generate the PDF.

The function must return a templateGetResult().

INFO

Only template.odt is currently supported !

Look for those files in user session :

  • template*.odt
  • template*.docx
TODO
  • PDF concatenate
  • PDF background
  • PDF foreground
  • page numbering

generate_template_odt()

TODO: Need to be documented

generate_template_svg()

TODO: Need to be documented

generate_template_docx()

TODO: Need to be documented

generate_template_typ()

Template based on typst format.

TODO: Need to be documented

generate_template_()

TODO: Need to be documented

return TemplateGetResult()

TODO: Need to be documented

Simple example:

template: template.odt

Complex example:

template: template.odt
foreground: watermark.pdf
background: background.odt
apppend:
    - template: annex1.odt
    - background: annex2_back.odt
      apppend:
          - template: annex2.xlsx
          - template: annex2a.md
          - template: annex2b.md
          - template: annex2c.md
    - template: annex3.odt
    - template: annex4.svg