Print JTextPane not as bitmap, but as vector graphics?
- From: Andi <info@xxxxxxxxxxx>
- Date: Wed, 9 Apr 2008 01:54:33 -0700 (PDT)
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
.
- Prev by Date: Re: Switching languages in Swing GUI on the fly
- Next by Date: Re: disable jcombobox item
- Previous by thread: Re: Switching languages in Swing GUI on the fly
- Next by thread: Close a frame, not the application?
- Index(es):