J.Pietschmann schrieb: > It is certainly possible, but it would require writing a new renderer > which uses the appropriate SWT graphics functions. Starting off with > the AWT/Print renderer, it is probably not all that difficult, but > there are still lots of minor and a few major differences between > SWT and AWT.
I think the easiest way is to subclass Java2DRenderer just like PNGRenderer does, and convert the BufferedImages that are returned by getPageImage to SWT-Images. Here's a snippet for the latter operation: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java?revision=HEAD I first intended to avoid AWT-dependency, but since it's packaged in default-jvm that's nonsense ;). fabian
smime.p7s
Description: S/MIME Cryptographic Signature