LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ps2pdf error on Linux RHEL4 (https://www.linuxquestions.org/questions/linux-newbie-8/ps2pdf-error-on-linux-rhel4-866474/)

dlangschied 03-04-2011 01:48 PM

ps2pdf error on Linux RHEL4
 
I have output that I send to my HP Laser Jet Printer. I want to add the ability to convert the file to a PDF so that I can e-mail it. I get an error below:

#s2pdf test.ps test.pdf
Error: /undefined in 1L1C0R浜様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様融
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1063/1123(ro)(G)-- --dict:0/20(G)-- --dict:88/200(L)--
Current allocation mode is local
Current file position is 93
GNU Ghostscript 7.07: Unrecoverable error, exit code 1


I know that ps2pdf works 'cause I did some testing and I get the desired results from:

man -t man | ps2pdf - test.pdf

The file that I create, test.ps, I can send to the printer using lp and it works just fine. I am at a loss as to why this does not work using my laserjet printer file. I would simply try to create a text version, but the file that prints out has graphics that I cannot create with just a text output. ps2pdf seemed like the ideal tool, but so far i am just frustrated.

jrtayloriv 03-05-2011 01:32 PM

Try ps2pdf with a different file so that you can determine if it is the file that is corrupt, or if it is a problem with your ps2pdf configuration.


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