You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
🔥A command line tool to generate PDF and text files from csv data and Freemarker templates.🔥
Notifications You must be signed in to change notification settings
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go to file🔥A command line tool to generate PDF (using Flyingsaucer) or text files from csv data and Freemarker templates🔥
+--------------+ +--------------+ | CSV data | | FTL template | +--------------+ +--------------+ | | | | v v +--------------+ +--------------+ +--------------+ +--------------+ | CsvJDBC |---------->| Freemarker |----/--->| JSoup |--------->| FlyingSaucer | +--------------+ +--------------+ +--------------+ +--------------+ | | / | | | v v +--------------+ +--------------+ | TXT file | | PDF file | +--------------+ +--------------+
-csv_charset | CSV file charset (optional, default 'UTF-8') |
-csv_extension | CSV file extesion (optional, default '') |
-csv_file | CSV input file (optional, use instead -csv_query) |
-csv_folder | CSV folder path (optional, default '.') |
-csv_query | CSV query command (optional, use instead -csv_file) |
-csv_separator | CSV separator character (optional, default ';') |
-for_each | Generate one file per data record (optional, see notes below) |
-ftl_encoding | FTL input file encoding (optional, default 'UTF-8') |
-ftl_file | FTL input file |
PDF output file (optional, use instead -txt) | |
-dpi | PDF output file dpi (optional, default 96) |
-txt | TXT output file (optional, use instead -pdf) |
-txt_charset | TXT output file charset (optional, default 'UTF-8') |
java -jar csv2pdf.jar -csv_file data.csv -ftl_file template.ftl -pdf output.pdf
java -jar csv2pdf.jar -csv_file data.csv -ftl_file template2.ftl -for_each -pdf 'output_$.pdf'