Basic Examples
Basic Examples
Import an SVG file as vector graphics:
In[]:=
Export["disks.svg",Graphics[{Opacity[0.5],Blue,Disk[],Yellow,Disk[{1,0}]}]]
Out[]=
disks.svg
In[]:=
Out[]=
Import an SVG file with formatted text:
In[]:=
Export["lorem.svg","Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."]
Out[]=
lorem.svg
In[]:=
Out[]=
Import an SVG file from the web:
In[]:=
Out[]=
Import a formula:
In[]:=
Export["formula.svg",Integrate[Sqrt[x+Sqrt[x]],x]]
Out[]=
formula.svg
In[]:=
Out[]=
Scope
Scope
Import an SVG file from a string:
In[]:=
Out[]=
Import from a byte array:
In[]:=
Out[]=
Import from a :
In[]:=
Out[]=
Import a :
In[]:=
co=CloudExport
,"SVG"
Out[]=
In[]:=
Out[]=
Import a :
In[]:=
lo=Export[LocalObject[],Plot[{Sin[x],Sin[2x],Sin[3x]},{x,0,2Pi},PlotLegends"Expressions"],"SVG"]
Out[]=
LocalObject[file:///C:/Users/rhennigan/AppData/Roaming/Wolfram/Objects/5bdb6dcb-9126-44ef-a561-9cace68c7cc4]
In[]:=
Out[]=
Options
Options
ShowWarnings
ShowWarnings
By default, warnings about potential conversion issues are not shown. In this example, some complex gradients were not converted correctly:
See the expected appearance:
Show warnings to see details about conversion problems:
In[]:=
IntermediateFormat
IntermediateFormat
The result will no longer be scalable vector graphics, however:
In[]:=
Properties and Relations
Properties and Relations
Possible Issues
Possible Issues
Dynamic JavaScript content will not work:
Animations are also not supported: