Craftform
template
Look for template* files.
Sort them alphabetically.
Process them with the supported template engine.
template
Look for template*
files.
Sort them alphabetically.
Process them with the supported template engine.
Concatenate the result PDF files.
libreoffice template engine
*.odt
*.xlsx
*.docx
markdown template engine
*.md
Not implemented yet !!
PDF template engine
*.pdf
A dummy template engine where a PDF is used as a template. Usefull to upgrade an existing PDF via paxpar by attaching metadata and files.
The PDF is taken as-is, no templating is done !
SVG template
*.svg
No templating is done yet !
typst template
*.typst
Add this line to access to form data:
#let data = json(sys.inputs.data_filename)
Then use #data
to access values:
My name is #data.name
script template_get()
You can override the step which find the template.
See script_default.template_get()
that must return TemplateGetResult
.
The template(s) found are use in the script_default.generate_pdf()
step.