Any recommendations for converting RTF to PDF? I need to do this from my LAMP application, so a command line utility like GhostScript would be ideal.
sudo apt-get install ted /usr/share/ted/Ted/rtf2pdf.sh source-file dest-file
or visit the link
Alternatively, you can use libreoffice for this task:
libreoffice --headless --invisible --norestore --convert-to pdf source-file.rtf
In my Ubuntu 10.4, I have unrtf that "converts RTF to HTML, LaTeX, Postscript." From Postscript, it should be a trivial ps2pdf application for receiving PDF files.
unrtf
ps2pdf
On Cent OS 6, these steps worked for me to convert RTF to PDF from a php file:
unoconv makes this very convenient. (For your information, I am currently using the same version 0.5-1). First I have to run the unoconv --listener & , and then the unoconv *.rtf command, for example ...
unoconv
unoconv --listener &
unoconv *.rtf
Source: https://habr.com/ru/post/893827/More articles:read one line with "read" in bash, but without "while" - bashI can not compile hamcrest hasKey () method - javajQuery: Changing CSS on an element loaded with ajax? - jqueryOverride jquery date - jqueryis node.js cleared after requests? - node.jsHow to Change Emacs Command Line Color - colorsHow to submit code to github? - githubCSS: hide column when decreasing width - cssHow to include images in a library in iOS / Xcode 4 - resourcesHow to add elements inside a static field when using sizers? - textAll Articles