LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2004, 10:17 AM   #1
hypernetics
Member
 
Registered: Oct 2003
Location: Berlin, GER
Posts: 35

Rep: Reputation: 15
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?
 
Old 12-06-2004, 05:23 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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.
 
Old 12-06-2004, 07:37 PM   #3
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Take a look at

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

Sheng-Chieh
 
Old 12-16-2010, 07:35 PM   #4
browone
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Install Ted then use rtf2pdf.sh

sudo apt-get install ted

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

Works great!
 
Old 04-02-2014, 12:03 AM   #5
dskanth
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by browone View Post
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 ?
 
Old 04-03-2014, 11:36 PM   #6
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Instead of the commandline, why not just use OpenOffice.org or LibreOffice?
 
Old 04-04-2014, 04:46 AM   #7
dskanth
LQ Newbie
 
Registered: Apr 2014
Posts: 4

Rep: Reputation: Disabled
Wink 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');

Last edited by dskanth; 04-04-2014 at 04:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert .info to .pdf? huweiming268 Linux - Software 2 09-19-2012 10:09 PM
Converting *.doc or *.rtf to PDF files Paulo Góes Programming 7 12-08-2006 09:07 AM
how to convert wordpad(rtf) doc to linux text file? kpachopoulos Linux - General 2 10-28-2005 10:53 AM
command line utility to convert between formats like .doc, .sxw, .rtf and others? bigtpumped Linux - Software 1 09-12-2005 09:54 PM
Converting PDF to text, rtf doc format saurya_s Linux - Software 2 06-16-2005 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration