LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   TED rtf2pdf.sh Issue on Debian (https://www.linuxquestions.org/questions/linux-software-2/ted-rtf2pdf-sh-issue-on-debian-829394/)

AdenFraser 08-30-2010 05:14 PM

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.

rikxik 09-01-2010 02:16 AM

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.


All times are GMT -5. The time now is 11:59 AM.