I have a problem with the PrintTranscoder. What I want
to do is simply print only what is visible through the
current rendering transform of a JSVGCanvas, not the
whole SVG graph.
I think the best thing to do is to figure out what Area of interest (AOI) you are currently viewing and then pass that as the AOI for the print call.
You can probably get this by transforming the JSVGCanva's bbox (0,0) -> (comp.w, comp.h) to the viewBox coordinate system. This can be done by using canvas.getViewBoxTransform().
Good luck!
I am doing this from an applet, and
adapting the PrintAction as used in Squiggle yields that I can print from my applet. Now I was trying to figure out how to apply the rendering transform of a JSVGCanvas to the PrintTranscoder, and I see various places where transforms are done in the PrintTranscoder class, but I simply cannot see where it is possible to apply a certain rendering transform. I would be VERY GLAD for any type of advice, this is driving me nuts.
Thanks,
Chris -- Chris Cruzdal
__________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]