Because I have managed to show label's template in SVG format on the screen, next logical step is to have it printed out. And of course I have to get that from java swing application.
As always there is no easy straightforward way to get it right at the first time. The question is. Is't possible to get something minimal in few minutes time. I did some browsing and googled but was not able to find a straight answer to that question. There was no sample code or explanation, how can I do that with batik. Sad news, more work will be involved. I thought it's common task to have a SVG printed out. Only thing I managed to find on batik site is a "pretty printing", what actually is not what I need.
I have some thoughts how to do that, but I would rather expect to read somewhere on the batik site, a guide for SVG printing. Any library has it's own unique thoughts about achieving different tasks, it's better to know a preferred way to do that. Should I convert SVG to raster image and print it out, can I use some helper class which will help me.
So I have to find out a easiest way to output SVG file content to the printer. There is my plan for this step:
- Will try to go throughout official batik mailing list
- Will try to find an forum or IRC channel
- If I will not be able to find any solution till that time I still have a source code of squiggle application which comes together with batik.
Will see how will it go.
No comments:
Post a Comment