Here is a gist of the Postscript file generated from the above call to qrencode: # setsid evince some_small_ >/dev/null 2>&1 & Inkscape -without-gui -export-pdf=some_small_ some_small_ Qrencode -v 1 -t svg -o some_small_ -l L "some small text" Here is the script I used to run lpr both with and without the -l option (shown below without it): cd /tmp
#Hl 2305 how to print on 3x5 from tray pdf#
In response to a comment at How to print PDF or Postscript files to printer directly from the command line : Printer Xerox-6180MFP-D/single-sided is idle. Printer Xerox-6180MFP-D/double-sided is idle. Xerox-6180MFP-D/single-sided accepting requests since Sat 05:36:44 PM PST Xerox-6180MFP-D/double-sided accepting requests since Sat 05:36:44 PM PST Xerox-6180MFP-D accepting requests since Sat 05:36:44 PM PST
What do I need to do to my CUPS configuration to enable it? What is Inkscape doing behind the scenes to successfully print to the printer, that I am unable to do from the lpr command line?įor reference, here is a gist of my current CUPS configuration file:
But when I try that on my Ubuntu system, after I convert the SVG files to either PDF or Postscript using Inkscape, sending it to lpr gives the error shown below on the front panel of the printer (a Xerox 6180MFP):Ĭommands I'm trying to use are: inkscape -without-gui -export-pdf=test_file.pdf test_file.svg I would like to do the same directly from the shell command line as given by the answer. I am able to print from Inkscape to my CUPS-configured network printer just fine.