/* create an SVG area */
/* if width and height are zero, may want to get the bounds of the content. */
SVGArea svg = new SVGArea(fs, width, height);
SVGDocument doc = new SVGDocumentImpl();
svg.setSVGDocument(doc);
svg.start();
/* add the SVG area to the containing area */
ForeignObjectArea foa = (ForeignObjectArea) area;
foa.setObject(svg);
foa.setIntrinsicWidth(svg.getWidth());