Documents & spreadsheets
VIKTOR offers several services that can be used to for example convert a file's extension (e.g. Word to PDF), or to dynamically fill a file where the content depends on other factors.
caution
Services need to be mocked within the context of (automated) testing.
Document conversion / merging
The following methods can be used to convert a file to PDF:
- Word to PDF (
convert_word_to_pdf()
). - Excel to PDF (
convert_excel_to_pdf()
). - SVG to PDF (
convert_svg_to_pdf()
).
Multiple PDF documents can easily be merged into a single document using
merge_pdf_files()
.
Templating
Dynamically filling a document can be achieved by using one of the available templaters:
Furthermore, a spreadsheet can be used as calculator.