webfax and kprinter

Goffioul Michael goffioul at imec.be
Tue Jun 29 09:13:21 CEST 2004


> Unfortunately I still have no idea how to "glue" this 
> together in an automatic virtual KDE-printer.  The 
> ps2pdf.xml-example (from the PDF-distiller option) doesn't 
> really help me here. 

You should have a look at the "Mail as PDF" pseudo printer in
kdeprint. This is exactly the same, except that the file format
is different, and you have to add your kdialog command.
Another solution is to put all operations in a script and create
a pseudo-printer around that script. You can even think of
setting the fax number as a printer setting. In your script, 
you can then fetch the fax number, and still use kdialog if the
user "forgot" to set it.

> 
> Especially as I do not have:
> 
> 
> 
> * any idea WHERE to get my initial Postscript-file from kprinter?

It's coming from STDIN.

> * and didn't know where to add my mini-shell-script (kdialog 
> plus kmail)

Put your script in any standard location contained in your PATH.
Note that you should maybe think of a script covering the TIFF
conversion as well. This way, you could define some configurable
conversion settings that the user would access from the printer
properties dialog (like it's done for in the file ps2pdf.xml)

> * and how to evoke some kind of "processing" message while 
> ghostscript converts ps to tiff (this kind of process need 
> some time, so it'll be usefull to have some "i'm still 
> working"-popup ;)

This is not possible. However, the job viewer should be started
and docked in the panel as long as the underlying process is running.
This is at least a clue about the process state.

Michael.


More information about the kde-print mailing list