Converter
Convert documents from InterSystems Cache easily using:
- LibreOffice
InterSystems Developer Community article.
Install
- Download and import code
- In OS:
- Linux: apt-get install libreoffice-core libreoffice-writer
- Windows: install libreoffice
- Add
soffice
to PATH
Use
Call from the terminal:
set sc = ##class(Converter.LibreOffice).convert(source, target, format)
write $System.Status.GetErrorText(sc)
Where:
- source - file to convert
- target - result file
- format - specification for target file. Possible values:
docx,html,mediawiki,csv,pptx,ppt,wmf,emf,svg,xlsx,xls
. More possible values here.
Errors
- Libreoffice errors
- Instal latest stable Libreoffice (5.2.5 atm). Minimally supported version is 4.2
- Don't run more than one process of LibreOffice
Footer
Add footer to MS office documents from InterSystems Caché.
Install
- Download and import code
- In OS:
- Windows: zip, unzip, libxml2, git, TortoiseGit
- Linux:
apt-get install zip unzip libxml2 libxml2-utils git
- Add binaries to path
Use
Call from the terminal:
do ##class(Converter.Footer).modifyFooter(source, target, text)
Where:
- source - file to convert
- target - result file
- text - text to add to footer