Dave
Andres Toussaint wrote:
Hi Dave:
I do not have need for clipping in my application, actually i export my full SVG into DXF by feeding my DXF generator the Graphics2D shapes i retrieve from the GVT Tree.
In the DXF export I have not performed any clipping, but if you can obtain your clipped image in Graphics2D description out of your SVG, then you can use the DXF Libraries i am using to generate your clipped DXF. Unfortunately these libraries are not Open Source, they are developed by Soft Gold, Ltd. (www.cadsoft.com)
Best regards,
Andres.
On Tuesday, April 6, 2004, at 09:18 AM, Dave Neuendorf wrote:
Andres,
I'm interested in what you're doing with DXF generation. I'd like to do something like that, but I have lots of clipping to be done. I've assumed that batik wouldn't work for me because clipped objects wouldn't be clipped in the DXF. Is that true, or do your clipped objects come out clipped in DXF?
Thanks, Dave Neuendorf
Andres Toussaint wrote:
Hello:
I had a similar problem with the application i am building, since i use large SVG´s and wanted to print them in tiles (for this i implemented a new class i called TiledPrintTranscoder that extends SVGAbstractTranscoder).
For your particular problem i would suggest the following:
Using a JSVGComponent, load the SVG, and build the GVT tree.
Once you have the GVT tree, you can access all of your SVG as Graphics2D objects. Now, with this Graphics2D objects, you can apply your AOI to the area of interest with an affine transform, and then convert your Graphics2D items back into SVG using org.apache.batik.svggen
I must say that i have not done this actually, but i am using the GVT tree to generate a DXF file out of my SVG file and it works really fine.
Andres.
On Tuesday, April 6, 2004, at 07:01 AM, SIMON Csaba wrote:
Hi all,
I have a very big SVG file, and I vant to send a little piece of it to the client.
I tried batik with the clipping example from carto.net, and it was perfect.
But if I try SVGTranscoder, it ignores the KEY_AOI hint.
Could someone show me the code, how I can load the doc, clip it and save the remaining part?
Thanks,
Csaba
--------------------------------------------------------------------- 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]
.
--------------------------------------------------------------------- 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]
.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]