Saving Page as a PNG image problem

Hello,

We have a particular vsdx file that we want to save its Diagram as a PNG image but the result is not OK with some shapes.

in attached files you will find the original file (TestImage.vsdx) that contains one page where two shapes are defined. when we try convert the diagram to a PNG file , the shapes become black.

here is the simple code that we used :slight_smile:
License license = new License();
license.setLicense(“C://Users//ark//Desktop//Visio Import//Aspose.Total.Java.lic.resj”);
// The path to the documents directory.
String dataDir = “C://Users//ark//Desktop//Visio Import//”;
// Call the diagram constructor to load diagram from a VSD file
Diagram diagram = new Diagram(dataDir + “TestImage.vsdx”);
// set the image save option
ImageSaveOptions imgOpts = new ImageSaveOptions(SaveFileFormat.PNG);
//set page index to render a particular page
imgOpts.setPageIndex(0);
// Save as PNG TestImage.7z (130.9 KB)
file format
diagram.save(dataDir + “testARKImage.png”, imgOpts);
System.out.println(“Process Completed Successfuly”);

Version Used : 19.7.0.0

@eljuventino

We were able to reproduce the issue in our environment while using Aspose.Diagram for Java 21.4. Hence, have logged it as DIAGRAMJAVA-50720 in our issue tracking system for correction. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.

@eljuventino
Please try the latest fix 21.4.1. We have fixed this issue in the fix.
Thanks.
(https://forum.aspose.com/uploads/default/50152) (3.9 MB)

The issues you have found earlier (filed as DIAGRAMJAVA-50720) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou