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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-06-2004, 11:17 AM
|
#1
|
Member
Registered: Oct 2003
Location: Berlin, GER
Posts: 35
Rep:
|
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?
|
|
|
12-06-2004, 08:37 PM
|
#3
|
Member
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472
Rep:
|
|
|
|
12-16-2010, 08:35 PM
|
#4
|
LQ Newbie
Registered: Dec 2010
Posts: 1
Rep:
|
Install Ted then use rtf2pdf.sh
sudo apt-get install ted
/usr/share/ted/Ted/rtf2pdf.sh source-file dest-file
Works great!
|
|
|
04-02-2014, 01:03 AM
|
#5
|
LQ Newbie
Registered: Apr 2014
Posts: 4
Rep: 
|
Quote:
Originally Posted by browone
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 ?
|
|
|
04-04-2014, 12:36 AM
|
#6
|
Senior Member
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,573
|
Instead of the commandline, why not just use OpenOffice.org or LibreOffice?
|
|
|
04-04-2014, 05:46 AM
|
#7
|
LQ Newbie
Registered: Apr 2014
Posts: 4
Rep: 
|
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 05:48 AM.
|
|
|
All times are GMT -5. The time now is 01:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|