legalinc / office-merge-lib
This library contains the CDE packages of libreOffice and Imagick. This is used to convert doc, docx, png and jpeg files to PDF.
Installs: 41 284
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 19
Forks: 0
Open Issues: 0
Language:Shell
Requires
- php: >=5.0.0
This package is not auto-updated.
Last update: 2023-06-28 12:57:05 UTC
README
This library contains the CDE packages of libreOffice and Imagick.
This is used to convert doc, docx, png and jpeg files to PDF.
Steps for convertion.
- Move the File which is to be converted to
cde-root/home/user/convert/
folder. - Change the directory to
cde-root/home/user/
. - For converting the image files, run the shell command
./convert.cde convert/imageFileName output/finalPDFName
. - For converting the doc/docx files, run the shell command
./libreoffice.cde --headless --invisible --convert-to pdf convert/docFileName --outdir output/
. - The converted PDF files can be extracted from the
cde-root/home/user/output/
folder. - Remove the files to prevent memmory growth.