Hello,
We have an application where we store microsoft office documents. As part of the release management we convert the office documents to pdf with watermarks using libreoffice.
Scenario:
- Almost all documents are coverted to pdf without any problem.
- Our observation shows that some are getting failed with heavy memory consumption.
- Libreoffice crashes when the documents contains heavy images and more pages (Ex: around 600 - 1000 pages)
I have tested both CLI and GUI. Result is same.
Technical Stack:
Redhat Enterprise 7.9 (3.10.0-1160.83.1.el7.x86_64)
Tested multiple versions: Result is not ok.
LibreOffice 7.1.5.2
LibreOffice 7.4.6.2
LibreOffice 7.5.1.2
CLI Command:
/opt/libreoffice75/program/soffice --headless --convert-to “pdf:writer_pdf_Export” --outdir /tmp 7090190.docx
Size of docx : 100MB
Appreciate some pointers to solve this problem.
Thank you in advance.