Convert RTF to PDF
Hi there,
is there a possibility to convert RTF documents into PS or PDF files from commandline? I guess it could work with CUPS, but I don't know how. Can anybody help me? |
You could use Ted (www.nllgg.nl/Ted) from the command line, using rtf2pdf.sh. Have a read of the Ted documentation at ftp://ftp.nluug.nl/pub/editors/ted/T..._to_invoke_Ted.
|
|
Install Ted then use rtf2pdf.sh
sudo apt-get install ted
/usr/share/ted/Ted/rtf2pdf.sh source-file dest-file Works great! |
Quote:
Is it possible to hide or remove the hidden text of RTF in the converted PDF file ? |
Instead of the commandline, why not just use OpenOffice.org or LibreOffice?
|
Libreoffice rocks
Well, i switched to Libreoffice4.2 now, and it is able to hide the hidden text of RTF file.
I am able to execute libreoffice via command from php code, and it works well: shell_exec('libreoffice4.2 --headless --invisible --norestore --convert-to pdf test.rtf'); |
All times are GMT -5. The time now is 03:01 PM. |