LEADTOOLS Support
Document
Document SDK Questions
Getting SVG vector dimensions without L_VecLoadFile
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, August 27, 2009 3:49:57 AM(UTC)
Groups: Registered
Posts: 3
Hello,
I want to get the size of a SVG file (L_VecGetObjectParallelogram), but without loading the file.
My problem is, that there are some > 1 MB SVG files with huge amount of paths and loading the SVG file takes several minutes on 100% CPU usage in LeadTools v16
Is there an API way to get the vector dimensions (without reading the XML and parse the ViewBox/width/height attribute)?
Regards,
Stefan
#2
Posted
:
Sunday, August 30, 2009 4:39:49 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Stefan,
There is no function in LEADTOOLS that can do this. The only way is to load and parse all the file. Furthermore, the real parallelogram might not always match the stored viewbox in all files because you can't control what other SVG writers store in their files.
LEADTOOLS Support
Document
Document SDK Questions
Getting SVG vector dimensions without L_VecLoadFile
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.