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

Free Support Forum - aspose.com

PNG/PDF output is not getting generated for visio document

Hello,

I am using aspose.diagram v6.7.0 to generate PNG and PDF outputs of the attached visio file. The output is not getting generated. An error comes while saving the diagram object.

Following code is used to generate the PNG output:

Diagram diagram = new Diagram("Space Planning.vst");
String pageName = "Floor Plan";
Page srcPage = diagram.getPages().getPage(pageName);
File outputFile = new File("output.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);


Following code is used to generate the PDF output:

Diagram diagram = new Diagram("Space Planning.vst");
File outputFile = new File("output.pdf");
diagram.save(outputFile.getAbsolutePath(), SaveFileFormat.PDF);



Can you please analyse this issue.

Thanks,
Neha

Hi Neha,


Thank you for contacting support. We managed to replicate the said error message on our side. We have logged tickets in our bug tracking system as below:

DIAGRAMJAVA-50371: The number format error occurred on saving a VST to PNG
DIAGRAMJAVA-50372: The number format error occurred on saving a VST to PDF

Your post has also been linked to these tickets. 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 issue ID's DIAGRAMJAVA-50371 and DIAGRAMJAVA-50372 have now been resolved. If there is no issue in the QA phase, then their fixes will be included in the next version of Aspose.Diagram for Java 6.9.0. 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's DIAGRAMJAVA-50371 and DIAGRAMJAVA-50372, please download and use the latest Hotfix version: Aspose.Diagram for Java 6.8.1. Please also let us know how that goes on your side.

Hello,


Thanks for your reply.

I tried the latest Hotfix version- Aspose.Diagram 6.8.1. It fixes the issue of PNG and PDF output not getting generated. Although the output is getting generated now, but there is Data Loss in the output (both PNG and PDF). I have attached a screenshot of the issue for your reference.

I also generated SVG output of the same page, and because of wrong background color, a lot of data is not visible.

Can you please analyse this issue.

Thanks,
Neha

Hi Neha,


Thank you for the details. We managed to replicate the problem of missing shapes. We have logged tickets in our bug tracking system as below:

DIAGRAMJAVA-50412: Missing shapes on converting a VST to PNG
DIAGRAMJAVA-50413: Missing shapes on converting a VST to PDF
DIAGRAMJAVA-50414: Missing shapes on converting a VST to SVG

Your post has also been linked to these tickets. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

The issues you have found earlier (filed as DIAGRAMJAVA-50371;DIAGRAMJAVA-50372) have been fixed in Aspose.Diagram for Java 16.10.0.


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

Hi Neha,


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

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


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

Is there any update on following issues?

- DIAGRAMJAVA-50412: Missing shapes on converting a VST to PNG
- DIAGRAMJAVA-50414: Missing shapes on converting a VST to SVG

There is no progress on these issues since a long time. Currently we are using aspose.diagram v17.5.0 and the issues are unresolved in this version too. When can we expect a fix for these?

Thanks,
Neha

Hi Neha,


Thank you for the inquiry. The linked ticket IDs DIAGRAMJAVA-50412 and DIAGRAMJAVA-50414 are pending for the analysis and not resolved yet. We have logged an ETA request under the same ticket IDs and will share details when a significant progress has been made in this regard.

@ngautam,
The ticket ID DIAGRAMJAVA-50412 has been resolved. If there is no issue in the quality assurance phase, then this fix will be included in the next version 17.8 of Aspose.Diagram for Java API. We will inform you once the new version 17.8 is published.

Best Regards,
Imran Rafique

@Neha_Gautam,
The ticket ID DIAGRAMJAVA-50412 has been fixed. Please download and try the new version 17.8 of Aspose.Diagram for Java API.

Best Regards,
Imran Rafique

The issues you have found earlier (filed as DIAGRAMJAVA-50414) have been fixed in this update. This message was posted using BugNotificationTool from <a href=“https://#{request.env[“HTTPS_HOST”]}”>Downloads module by Farhan.Raza