no 'pipe print output to command' option by default in new gtk+ print dialog

Bug #189813 reported by bobstory
2
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Wishlist
Unassigned

Bug Description

I downloaded and compiled the latest cvs version, and the only request I have is that you put back somewhere in the Print menu, the old pipe command. Since my only purpose is vinyl cutting I need to pipe the output through additional software.. Actually, it would be nice to have two pipe menu entries, one to set up a view of the cut , and the other to send to the cutter.

Other than that.. you guys are doing a great job.. Love the new Corel import feature.

Tags: printing
Revision history for this message
Tom Davidson (tjd-mit) wrote : Re: regression: print to pipe

Hi, thanks for the bug report. What version of inkscape did you last see this feature in?

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Tom Davidson (tjd-mit) wrote :

Looks like you can still do this from the command line. The man page for inkscape includes the following text:

   -p PRINTER, --print=PRINTER
              Print document(s) to the specified printer using 'lpr -P PRINTER'. Alternatively, use '|
              COMMAND' to specify a different command to pipe to, or use '> FILENAME' to write the
              PostScript output to a file instead of printing. Remember to do appropriate quoting for
              your shell, e.g.

              inkscape --print='| ps2pdf - mydoc.pdf' mydoc.svg

Is this good enough? Or would you prefer to have an option from the print dialog?

Revision history for this message
Tom Davidson (tjd-mit) wrote : Re: regression: no print to pipe option in print dialog

Closing since user sent an email saying current behavior is good enough...

Changed in inkscape:
status: Confirmed → Invalid
Revision history for this message
Tom Davidson (tjd-mit) wrote :

So now that Inkscape uses the gnome-print dialog box (see bug 170727), this is handled differently.

The gnome-print faq says that you can print to a pipe by printing to file, and using '| program' as the filename, but I haven't gotten that to work yet... ( http://www.gnome.org/projects/gnome-print/home/faq.html ) This is from 2001, though. I'm not sure what the current state of this functionality is...

Bob--if you get this working can you report back here so we can make sure the docs get updated...

Thanks!

Revision history for this message
Tom Davidson (tjd-mit) wrote :

Actually, it looks like we have just switched to the GTK-print dialog, according to the release notes at:
http://wiki.inkscape.org/wiki/index.php/ReleaseNotes046#Print_dialog_integration

So that gnome-print info is probably irrelevant. Still don't know if there's a way to pipe from gtk-print...

Tom Davidson (tjd-mit)
Changed in inkscape:
status: Invalid → Confirmed
Revision history for this message
Tom Davidson (tjd-mit) wrote :

OK, now that (as of 0.46) we are using the GTK+ print dialog, piping the printing output to a command is now only available if you tell GTK that you want it. To do this, you need to enable gtkprint's lpr backend. You do this by adding the line:

gtk-print-backends = "file,cups,lpr"

To your gtk config file, either per-user: ~/.gtkrc-2.0 or system wide: /etc/gtk-2.0/gtkrc
You may have to create the file, if doesn't already exist.

Then in the print dialog, you should have the 'Print to LPR' option. You can use this to pipe the output to any command, not just LPR. In the attached screenshot, for instance, I am piping the output to ps2pdf. (this is silly, I could just save to pdf, but you get the idea...)

It would be nice if Inkscape could somehow request this option always be displayed by the print dialog. I don't know if that is possible...

Revision history for this message
Tom Davidson (tjd-mit) wrote :

[Many thanks to 'mantyan' in the gtk+ channel at irc.gimpnet.org for the preceding information]

Revision history for this message
Tom Davidson (tjd-mit) wrote :

Kees, Could you look into this? Is there a way (using the new GTK print dialog) to request that the 'print to LPR' option is always available?

Changed in inkscape:
assignee: nobody → keescook
Kees Cook (kees)
Changed in inkscape:
assignee: keescook → nobody
importance: Medium → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.