On Sat, Oct 21, 2017 at 8:48 PM, Kirk Brooks via 4D_Tech <
[email protected]> wrote:
>
> For example:
>
> $svgImg:=SVG_Open_file ($path+$aDocs{$n})
>
> $svg:=SVG_Copy ($svgImg)
> $pic1:=SVG_Export_to_picture ($svg;0)
> SVG_CLEAR ($svg)
>
> This works as expected.
>
> $svg:=SVG_New
> $newObj:=SVG_Add_object ($svg;$svgImg)
> $pic2:=SVG_Export_to_picture ($svg;0)
>
>
> This doesn't work. $pic2 is blank even though $svg has received the new
> object. I can see that by looking at $svg in the viewer.
>
> What am I missing here?
>
Kirk, I do not have answer as I do not use SVG component to manipulate SVG,
I handle them with XML commands. Note that SVG objects are just XML trees
and can be manipulated with XML commands. For example, you can use command
DOM EXPORT TO FILE
to export SVG as XML file and explore it in text or XML editor.
In your case, I would guess that $svg is not properly formed as SVG image.
--
Peter Bozek
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************