LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Convert RTF to PDF (https://www.linuxquestions.org/questions/linux-software-2/convert-rtf-to-pdf-263247/)

hypernetics 12-06-2004 10:17 AM

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?

mjrich 12-06-2004 05:23 PM

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.

shengchieh 12-06-2004 07:37 PM

Take a look at

http://wheel.compose.cs.cmu.edu:8001.../browse/objweb

Sheng-Chieh

browone 12-16-2010 07:35 PM

Install Ted then use rtf2pdf.sh
 
sudo apt-get install ted

/usr/share/ted/Ted/rtf2pdf.sh source-file dest-file

Works great!

dskanth 04-02-2014 12:03 AM

Quote:

Originally Posted by browone (Post 4194182)
sudo apt-get install ted

/usr/share/ted/Ted/rtf2pdf.sh source-file dest-file

Works great!

I am getting the hidden text from RTF in the converted PDF.
Is it possible to hide or remove the hidden text of RTF in the converted PDF file ?

mark_alfred 04-03-2014 11:36 PM

Instead of the commandline, why not just use OpenOffice.org or LibreOffice?

dskanth 04-04-2014 04:46 AM

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.