|
From: | Michael D Godfrey |
Subject: | Re: fltk printing |
Date: | Fri, 06 Aug 2010 15:30:21 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1 |
Ben, You asked for: [qss:octave] gs -v GPL Ghostscript 8.71 (2010-02-10) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. octave:1> plot(1:10) octave:2> print test.pdf -debug GPL Ghostscript 8.71: Unrecoverable error, exit code 1 ---- begin /tmp/oct-q2Hi98.ps ---- %!PS-Adobe-3.0 << /Margins [0 0] /.HWMargins [0 0 0 0] /PageOffset [18 180] >> setpagedevice %EOF ----- end /tmp/oct-q2Hi98.ps ----- Ghostscript command: /usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dEmbedAllFonts=true -dOptimize=true -sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile=test.pdf /tmp/oct-q2Hi98.ps /tmp/oct-qAirIj.eps warning: print.m: ghostscript failed to convert output to file 'test.pdf'. No such file or directory warning: print.m: failed to delete temporay file, '/tmp/oct-qAirIj.eps'. octave:3> But, in /tmp are: -rw-rw-r-- 1 godfrey godfrey 97 Aug 6 15:03 /tmp/oct-q2Hi98.ps -rw-rw-r-- 1 godfrey godfrey 6308 Aug 6 15:03 /tmp/oct-qAirIj.eps And, if I run the gs command after exiting Octave, it runs and produces the intended test.pdf. And, the file Aug 6 15:03 /tmp/oct-qAirIj.eps is still in /tmp. And, in Octave, I tried: octave:2> system('gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dEmbedAllFonts=true -dOptimize=true -sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile=test.pdf /tmp/oct-q2Hi98.ps /tmp/oct-qAirIj.eps') ans = 0 And, the expected test.pdf was created. So, I do not know what has gone wrong. Remember also that print('test.pdf') works fine. Anything more I can provide? Michael |
[Prev in Thread] | Current Thread | [Next in Thread] |