Hello,
I have just checked in my first attempt at print support in dia. It uses
gnome-print, and is disabled by default.
To enable the code, run configure with the --enable-gnome and
--enable-gnome-print arguments. This will add a print item to the right
click menu that can be used to print the diagram.
There are a few bugs, and the postscript it produces seems to be a bit
broken. I am not sure if it is my code or gnome-print that is causing
breakage though (any postscript gurus welcome to tell me!). Also, the
gnome-print API does not have support for elliptic arcs, so ellipses and
arcs will not print properly at the moment. Either support needs to be
added to gnome-print, or I could approximate them with beziers.
Other than that particular brokenness, it does multipage printing, and
clips each page so that it does not draw to the margins. It also only
draws the objects that overlap with the page area when rendering each
page. It will completely skip empty pages.
A lot of the pagination code could probably be used for a straight
postscript output renderer.
As I said in a previous message, the gnome-print backend will also allow
printing to non postscript printers such as most ink jets, and has print
preview support. This gives a fairly complete printing architecture.
If anyone has any comments, or patches to fix bits of the code, please
share them.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/