[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54560] Unable to send large figures to the de
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #54560] Unable to send large figures to the default printer |
Date: |
Thu, 23 Aug 2018 10:22:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.gnu.org/bugs/?54560>
Summary: Unable to send large figures to the default printer
Project: GNU Octave
Submitted by: pantxo
Submitted on: Thu 23 Aug 2018 02:22:24 PM UTC
Category: Plotting with OpenGL
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
The simple command bellow for printing the current figure to the default
printer fails on linux:
demo material 1
print -dpsc
I get the error bellow:
/usr/bin/lpr: Error - unable to queue from stdin - Connexion ré-initialisée
par le correspondant.
GPL Ghostscript 9.20: ERROR: ioerror (-12) on closing ps2write device.
I changed __opengl_print__.m so that it prints the commands onscreen and here
is what I observe
/usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -dAutoRotatePages=/None
-sDEVICE=ps2write -dLanguageLevel=2 -dEmbedAllFonts=true -dEPSCrop
-sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile="-" /tmp/oct-x4iz82.ps - |
/usr/bin/lpr -l ; rm /tmp/oct-x4iz82.ps
While when printing to a ps file here is the command:
/usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -dAutoRotatePages=/None
-sDEVICE=ps2write -dLanguageLevel=2 -dEmbedAllFonts=true -dEPSCrop
-sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile="/tmp/toto.ps" /tmp/oct-O5mLnt.ps
- ; rm /tmp/oct-O5mLnt.ps
The main difference, except the use of lpr, is that ghostscript writes to
stdout instead of a file.
This is not a problem for small figures (e.g plot (1:10)) and the workaround
is to print to ps first and then use lpr manually:
demo material 1
print -dpsc /tmp/toto.ps
system ("lpr -lr /tmp/toto.ps")
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54560>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54560] Unable to send large figures to the default printer,
Pantxo Diribarne <=