SVG file drawing issues

Discuss and ask questions about CAD DLL (CAD Image DLL, CAD Importer DLL).

Moderators: admin, support, SDS

Post Reply
Vilo
Posts: 6
Joined: 02 Nov 2007, 18:05

SVG file drawing issues

Post by Vilo » 28 Dec 2011, 19:27

Hi all,

I'm loading the svg file attached with CADImporterDLL, and drawing it to a windows canvas.
The 1rst issue is that no text is rendered.
Is that a known limitation of CAImporterDLL's SVG handling ?

The 2nd issue concerns the "PAGE" in this SVG.
Is there a way to access the page dimensions ?

Tks ;-)
Attachments
Induction compens.zip
(6.4 KiB) Downloaded 1412 times

support
Posts: 2932
Joined: 30 Mar 2005, 11:36
Contact:

Re: SVG file drawing issues

Post by support » 03 Jan 2012, 13:02

Hello.
CAD Importer DLL supports common SVG specification that can be found at http://www.w3.org. The provided file was created with Inkscape software that exports to extended (Inkscape SVG) format. Inkscape includes own tags that missed by CAD Importer reader. For example texts include -inkscape-font-specification parameter. The texts can't be imported correctly with other SVG readers also, Adobe plug-in for example:
adobe_pl.png
adobe_pl.png (78.24 KiB) Viewed 25904 times
CAD Importer DLL provides extents of a drawing via CADGetBox function.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Vilo
Posts: 6
Joined: 02 Nov 2007, 18:05

Re: SVG file drawing issues

Post by Vilo » 03 Jan 2012, 13:14

Yes indeed, by converting the "InkScape" texts to standards "TEXT", it works.
Thanks for you reply ;-)

Post Reply