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

Free Support Forum - aspose.com

drawLine() not visible in PDF/PNG/HTML (JAVA 23.1)

Dear Aspose Team,

I logged a ticket towards the end of last year requesting the drawLine() and drawPolyLine() to be added to the Java API. Draw Line with multiple points (Java). Released in version 22.12

It is meeting my needs perfectly however the shapes/lines seem to be missing when exported to PDF/HTML and PNG from the Visio file.

Any assistance would be appreciated.

Thanks

@joshualotz81

Can you please provide the sample files for our reference so that we can test the scenario in our environment and address it accordingly?

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)

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

  Issue ID(s): DIAGRAMJAVA-51076

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.