Skip to content

This is the PDF and DOC file generator for Convertigo low code / No Code platform. Use this library to generate WORD , ODT or PDF documents from dynamic data. The library is based on the ODF toolkit to fill PDF or ODT documents templates

Notifications You must be signed in to change notification settings

convertigo/c8oprj-lib-odftoolkit

Repository files navigation

lib_fill_odt_pdf

ODFToolkit and PDF library

For more technical informations : documentation

Installation

  1. In your Convertigo Studio use File->Import->Convertigo->Convertigo Project and hit the Next button

  2. In the dialog Project remote URL field, paste the text below:

    UsageClick 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
    
  3. Click the Finish button. This will automatically import the lib_fill_odt_pdf project

Sequences

clean_outputs

Clean the generated files from the 'outputs' directory. Can be used in a Convertigo scheduled job to automate the process.

variables

namecomment
allSet 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_timeDefine the maximum time in millisecond before deleting the file. Default is 86400000ms (24h). Only works if 'all' is 'false'

demo_u_fill_odt

Demo sequence to fill an ODT template file.

demo_u_fill_pdf

Demo sequence to fill an ODT template file.

fill_odt

Fills an ODT template file (Deprecated). Place your template files in .//templates/odf folder.

variables

namecomment
dateDate
input_filenameInput 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
objetSubject
output_filenameOutput ODT file name (without extension). '.doc' is automatically added to filename to be opened by Ms Word or OpenOffice.
signatureSignature. Absolute Image file path.
texteMain Body Text

fill_pdf

Fills a PDF template file (deprecated). Place your template file in .//templates/pdf folder.

variables

namecomment
dateDate
input_filenameInput PDF template file name to fill (without extension, '.pdf' is assumed). Put your templates in /templates/pdf
objetSubject
output_filenameOutput PDF file name (without extension). '.pdf' is automatically added to filename.
signatureSignature. _ Image file. Can be an aboslute path file or relative to project (.//) or workspace (./). _ B64 string.
texteMain Body Text

u_fill_odt

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

namecomment
input_filenameInput 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
markersStructured 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_filenameOutput ODT file name (without extension). '.odt' is automatically added to filename to be opened by Ms Word or LibreOffice.

u_fill_pdf

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

namecomment
input_filenameInput PDF template file name to fill (without extension, '.pdf' is assumed). Put your templates in /templates/pdf
markersStructured 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_filenameOutput PDF file name (without extension). '.pdf' is automatically added to filename.

u_read_pdf

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

namecomment
input_filenameInput PDF file name to read (without extension, '.pdf' is assumed). Put your templates in /read

About

This is the PDF and DOC file generator for Convertigo low code / No Code platform. Use this library to generate WORD , ODT or PDF documents from dynamic data. The library is based on the ODF toolkit to fill PDF or ODT documents templates

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published