LinuxQuestions.org
Review your favorite Linux distribution.
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 08-30-2010, 05:14 PM   #1
AdenFraser
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Question TED rtf2pdf.sh Issue on Debian


I've just got a server setup for which will need to convert RTF files to PDF using TED and the following script - which I will later exec() in php:
ftp://ftp.nluug.nl/pub/editors/ted/rtf2pdf.sh

Right now I've installed Ted, placed the above script in the correct location (same location as Ted) and I believe i've installed Ghostscript but when I run the command:
rtf2pdf.sh something.rtf something.pdf

I recieve the following errors:
http://dl.dropbox.com/u/2899775/errors.PNG

Since I know very little about Debian or any other linux distro for that matter I'm hoping someone could help me out in any way possible - it would be greatly appreciated.

Thanks.
 
Old 09-01-2010, 02:16 AM   #2
rikxik
Member
 
Registered: Dec 2007
Posts: 88

Rep: Reputation: 19
That script is basically running these two commands for you:

Code:
Ted --setProperty usePostScriptFilters 1 --setProperty usePostScriptIndexedImages 1 --printToFile something.rtf temporaryfile.ps
gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="something.pdf" "temporaryfile.ps" -c quit
You can run the first command from xterm and see if you get the same error. If yes, then its something to do with Ted. If not, then it is happening with gs.

In either case, the error seems to be related to library Ted/gs depend upon. Did you install Ted using apt-get or built it manually or some other manner? Usually if you install the apps via repository (apt-get), then library dependencies are already sorted and such issues are minimum.

Last edited by rikxik; 09-01-2010 at 02:17 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
Hello from Ted tandl321 LinuxQuestions.org Member Intro 1 05-17-2009 07:21 PM
LXer: Ted Ts'o: Debian Can Learn from Ubuntu LXer Syndicated Linux News 0 12-30-2008 12:51 AM
LXer: Debian Lenny, the Ted RTF word processor, and the fate of the $15 Laptop LXer Syndicated Linux News 0 02-01-2008 01:42 AM
LXer: Watch some TV with TED LXer Syndicated Linux News 0 12-07-2007 05:21 AM
can't get TED to work walterbyrd Linux - Software 0 03-06-2006 04:12 PM

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

All times are GMT -5. The time now is 11:55 PM.

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