ODFToolkit and PDF library
For more technical informations : documentation
-
In your Convertigo Studio use
File->Import->Convertigo->Convertigo Project
and hit theNext
button -
In the dialog
Project remote URL
field, paste the text below:Usage Click the copy button To contribute lib_fill_odt_pdf=https://github.com/convertigo/c8oprj-lib-odftoolkit.git:branch=master
To simply use lib_fill_odt_pdf=https://github.com/convertigo/c8oprj-lib-odftoolkit/archive/master.zip
-
Click the
Finish
button. This will automatically import the lib_fill_odt_pdf project
Clean the generated files from the 'outputs' directory. Can be used in a Convertigo scheduled job to automate the process.
variables
name | comment |
---|---|
all | Set value to 'true' to directly delete all files whatever last modified date they have. Default is 'false', it only deletes files older than 'max_time' |
max_time | Define the maximum time in millisecond before deleting the file. Default is 86400000ms (24h). Only works if 'all' is 'false' |
Demo sequence to fill an ODT template file.
Demo sequence to fill an ODT template file.
Fills an ODT template file (Deprecated). Place your template files in .//templates/odf folder.
variables
name | comment |
---|---|
date | Date |
input_filename | Input ODT template file name to fill (without extension, '.doc' is automatically added but format is ODT and can be opened as a Ms Word file or OpenOffice). Put your templates in /templates/odf |
objet | Subject |
output_filename | Output ODT file name (without extension). '.doc' is automatically added to filename to be opened by Ms Word or OpenOffice. |
signature | Signature. Absolute Image file path. |
texte | Main Body Text |
Fills a PDF template file (deprecated). Place your template file in .//templates/pdf folder.
variables
name | comment |
---|---|
date | Date |
input_filename | Input PDF template file name to fill (without extension, '.pdf' is assumed). Put your templates in /templates/pdf |
objet | Subject |
output_filename | Output PDF file name (without extension). '.pdf' is automatically added to filename. |
signature | Signature. _ Image file. Can be an aboslute path file or relative to project (.//) or workspace (./). _ B64 string. |
texte | Main Body Text |
Fills an ODT template file (Universal). Place your template files in .//templates/odf folder. It will output an attachment structure and if you call it with .bin requester it will trigger a download in the client Browser.
variables
name | comment |
---|---|
input_filename | Input ODT template file name to fill (without extension, '.odt' is automatically added and it can be opened as a Ms Word file or LibreOffice). Put your templates in /templates/odf |
markers | Structured array as follow :
[ { "tag": "<tag name in template file to replace with 'value' key>", "type": "<tag type. 'image' or 'string' supported>", "value": "<replacement string or image absolute path>" } ]> |
output_filename | Output ODT file name (without extension). '.odt' is automatically added to filename to be opened by Ms Word or LibreOffice. |
Fills a PDF template file (Universal). Place your template file in .//templates/pdf folder. It will output an attachment structure and if you call it with .bin requester it will trigger a download in the client Browser.
variables
name | comment |
---|---|
input_filename | Input PDF template file name to fill (without extension, '.pdf' is assumed). Put your templates in /templates/pdf |
markers | Structured array as follow :
[ { "tag": "<tag name in template file to replace with 'value' key>", "type": "<tag type. 'image' or 'string' supported>", "value": "<replacement string or image absolute path>" } ]> |
output_filename | Output PDF file name (without extension). '.pdf' is automatically added to filename. |
Reads a PDF file (Universal). Place your template file in .//read folder. It will output the following structure : { "array": [ { "name": "", "value": "", "type": "PDF Form type" }, ...]
variables
name | comment |
---|---|
input_filename | Input PDF file name to read (without extension, '.pdf' is assumed). Put your templates in /read |