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

Free Support Forum - aspose.com

Formatting done on a basic shape is missing in PNG output of visio page

Hello,

I am using aspose.diagram v6.7.0 to generate PNG of page - 'Page-1' of the attached visio file. The formatting done on a basic shape is missing from the PNG output.

Following code is used to generate the PNG output:

Diagram diagram = new Diagram("test.vsdx");
String pageName = "Page-1";
Page srcPage = diagram.getPages().getPage(pageName);
File outputFile = new File("Page-1.png");
int imageFormat = SaveFileFormat.PNG;

int pageIndex = 0;
ImageSaveOptions options = new ImageSaveOptions(imageFormat);
options.setResolution(96);
for (Page page : (Iterable) diagram.getPages()) {
if (page.getID() == srcPage.getID()) {
options.setPageIndex(pageIndex);
options.setPageCount(1);
break;
}
pageIndex++;
}
diagram.save(outputFile.getAbsolutePath(), options);


Can you please analyse this issue.

Thanks,
Neha

Hi Neha,


Thank you for contacting support. We managed to replicate the problem of missing formatting of the rectangle shape. It has been logged under ticket ID DIAGRAMJAVA-50370 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

Hi Neha,

Thank you for being patient. We have a good news for you that the ticket ID DIAGRAMJAVA-50370 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version 17.1.0 of Aspose.Diagram for Java API. We'll inform you via this forum thread as soon as the new release is published.

Hi Neha,


Thank you for being patient. In reference to the ticket ID DIAGRAMJAVA-50370, please download and use the latest Hotfix version: Aspose.Diagram for Java 16.12.1.0. Please also let us know how that goes on your side.

The issues you have found earlier (filed as DIAGRAMJAVA-50370) have been fixed in Aspose.Diagram for Java 17.1.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hello,


Thanks for your reply.

I verified this issue with aspose.diagram 17.1.0. The output has improved a lot but in the PNG output, border is still missing.

I have attached the PNG output for your reference.

Can you please analyse this?

Thanks,
Neha

Hi Neha,


Thank you for sharing your feedback. We have evaluated the recently shared scenario, and we are able to replicate the said issue on our side, that is; white border around the blue rectangle is missing in the resultant PNG image. We have raised this incident with the product team under the ticket DIAGRAMJAVA-50461. Please spare us little time to properly analyze the scenario and get back with updates in this regard.

Hi again,


This is to inform you that the ticket logged earlier as DIAGRAMJAVA-50461 has been marked resolved. We will share the fix with next revision of the API in couple of days.

The issues you have found earlier (filed as DIAGRAMJAVA-50461) have been fixed in Aspose.Diagram for Java 17.02.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hello,


The earlier issues have been resolved.
But in the PNG output, a white horizontal line is appearing at the bottom of the shape which is not present in the actual visio shape. We are currently using aspose.diagram v17.5.0.

I have attached the PNG output for your reference.

Can you please analyse this?

Thanks,
Neha

Hi Neha,


Thank you for contacting support. We managed to replicate the problem of a white horizontal line in the output PNG. It has been logged under the ticket ID DIAGRAMJAVA-50499 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Hi Neha,


Thank you for being patient. The ticket ID DIAGRAMJAVA-50499 has been resolved. If there is no issue in the quality assurance phase, then this fix will be included in the next version 17.6 of Aspose.Diagram for Java API. We will notify you as soon as the new release is published.