Print Dialog and Toolkit


January 31, 2009 12:11 pm







Author: Oleg Motygin

This is an interactive printing toolkit with a set of pseudo-printers. In particular, it can be considered as a simple analogue of kprinter. Interaction with user is based on gtk dialogs by Zenity tools.

When printing through printkit it is possible: to print to a printer via gtklp (or some other interface: lp, kprinter; see $printspooler in the script), or to save output as a djvu, pdf or ps file. When choosing an existing file for saving, it is possible to append to the file.

Installation and usage: put the script printkit somewhere in the path (e.g. in ~/usr/local/bin). Use printkit as a command for printing in X applications. The script printkit accepts one parameter (the name of input postscript file); when being invoked without parameter it takes input from stdin.

Used packages: zenity; netpbm (>=10.21), psutils, and djvulibre for conversion to djvu; pdftk for conversion to pdf.

See also the variable $cleanuptype3fonts in the script. If it is set to “yes”, then the pdf pseudo-printer also tries to get rid of type3 raster fonts that may make the output pdf file to look better. This function needs perl installed.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Free Tools, Technical Solutions

Disclaimer: As with everything else in the SUSE Blog, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.