commandline printing on win32

Bug #176541 reported by Sourcerer on 2007-12-15
8
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
Unassigned

Bug Description

I couldn´t find a way to automatically print an SVG through a commandline option:
inkscape -f image.svg -p Printer
It seems that the commandline option -p only supports printing to a file at the moment.
I wrote a patch that should solve add the feature that when using an empty filename with -p ""
that it prints to the printer instead of a file then.
Here is the patch:
http://www2.futureware.at/~philipp/print.patch

Sourcerer (pg-futureware) wrote :

I am not sure, whether it would be better to have 2 different printing options, one that prints to a file and one that prints to a real printer, or whether it´s better to have just one printing option.

vonHalenbach (lustik) wrote :

Thank you for this patch, Sourcerer. I am attaching it directly to this wish.

Changed in inkscape:
importance: Undecided → Wishlist
status: New → Triaged
vonHalenbach (lustik) wrote :
Bryce Harrington (bryce) wrote :

Hmm, I'm not sure I understand what the original issue is. According to the man page, -p PRINTER will print to the printer; if it doesn't, then that bug should be fixed (and this patch might just be adding a workaround that hides that bug). But possibly I misunderstand what the driving issue is here?

Jewel (ejewel) wrote :

Attached is a larger patch which adds a few new command line printing options. (While these are necessary for printing automation on Windows, they could also be useful in Linux.)

--really-print Print file. Use printer settings from --print-settings-file if specified and if that file exists. Otherwise prompt for print settings.

--print-settings-file File containing print settings. This will be read from if --really-print is specified or written to if --print-dialog is specified.

--print-dialog Show print settings dialog and save the chosen settings to the file specified in --print-settings-file.

tags: removed: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions