Print JTextPane not as bitmap, but as vector graphics?



Hi,

I'm working on a small Swing application that allows to arrange
elements like pictures, vector graphics and texts on a page and prints
them. I use JTextPanes to display and print text frames. Everything
works fine - but when I print one ore more JTextPanes, the whole
printing seems to be no vector printing any more but a bitmap
printing.

My only question: Is this normal? If yes, why? Or did I do something
wrong, i.e. is it possible to print the contents of a JTextPane as
vector glyphs too?

All examples I've seen so far paint the JTextPane in a bitmap and
print that bitmap. But I want the "real glyphs" to be printed, not a
bitmap. My (working) workaround is to convert the StyledDocument to a
list of AttributedString instances, but if there is a better way,
please tell me.

Thanks!


Andi
.