We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unity - Aspose.SVG document empty

Hello,

I downloaded the Aspose.SVG Product Family into my Unity project to extract some data from .svg files.
The part of code that open the file looks like this:

using (var document = new SVGDocument(Application.dataPath + "/1544277506.svg"))
    {
        //Some logic here...
    }

While the SVGDocument constructor finds the file (it didn’t throw any exceptions), the document variable remains empty. I tried to access some of its properties (like DocumentElement) and they were all null.
While looking for a solution, I tried to create a new project in VisualStudio. Running the same code, this time the document variable wasn’t empty and I could access its properties with no problem.
I guess the problem is related to the integration of the Aspose.SVG product with Unity.
I am using Unity version 2020.3.15f2 and Aspose.SVG version 21.11.0.

Any help to fix this will be great.
Thanks in advance.

@Golan

We believe that a similar issue has already been addressed in this topic. Can you please check it and try the solution given over there. In case it does not help, please let us know.