Please see attached reference files.
Includes:
- .vsdx visio file (Drawing-Export.vsdx)
- .html file exported from visio file (ExportToHTML.html and ExportToHTML_files)
- .pdf file exported from visio file (ExportToPDF.pdf)
- .png file exported from visio file (ExportToPNG.png)
- The custom stencil i have been using (Custom-Stencil.vssx)
- The image I used for the shapes (Host-HostServer.png)
Code lines I have been using to generate the files:
DiagramSaveOptions options = new DiagramSaveOptions(SaveFileFormat.VSDX);
diagram.save(path, options);
diagram.save("./generated/ExportToHTML.html", SaveFileFormat.HTML);
diagram.save("./generated/ExportToPNG.png", SaveFileFormat.PNG);
diagram.save("./generated/ExportToPDF.pdf", SaveFileFormat.PDF);
page.drawLine(0,0,0,0,cpArray);
cpArray being all the points of the line (double [])
Aspose Support.zip (3.2 MB)