octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46445] unable to print directly to non-postcr


From: anonymous
Subject: [Octave-bug-tracker] [bug #46445] unable to print directly to non-postcript printer (HP 8610)
Date: Sat, 14 Nov 2015 16:36:51 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

URL:
  <http://savannah.gnu.org/bugs/?46445>

                 Summary: unable to print directly to non-postcript printer
(HP 8610)
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 14 Nov 2015 04:36:49 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: Adrian Mariano
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I have an HP 8610 printer on my local network.  On my linux machine I can
print from the shell using "lpr foo.ps" or "lpr foo.pdf" with success.  The
CUPS printer system is handling printing for me.  

In Octave if I issue the command "print" then octave sends postscript to the
printer and somehow avoids the normal processing that happens with lpr, which
results in the postscript source printing as text on the printer (I get a few
lines of postscript header and tons of blank pages).  I tried "print -dpdf"
and the printer makes noises and prints nothing, which I speculate is a result
of pdf source being sent to the printer.  

If I run from Octave "print('foo.ps')" or "print('foo.pdf')" and then print
the resulting file from the shell with lpr then printing succeeds.  

The documention for print suggests that I can use "-dghostscript_device" so I
tried selecting pcl3, which I believe is correct for my printer:

>> print -dpcl3
error: print: format must be a valid Ghostscript format for spooling to a
printer
error: called from
    __print_parse_opts__ at line 336 column 7
    print at line 291 column 8

Note that using pcl3 from the command line succeeds:

gs -sDEVICE=pcl3 -sOutputFile=foo.pcl foo.ps

The foo.ps file is the one produced by octave above.  

I tried looking at print.m, but it appears all the printing is hidden by the
function __opengl__print__, so I can't tell what's actually going on.  (I'm
actually not quite sure because when I modified print.m, but modifications
didn't seem to run, which made me uncertain print.m was actually running at
all when I typed "print".)  







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46445>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]