Ink tools are either missing or appear as distorted lines in PDF/PNG output of visio pages

Hello,

I am using aspose.diagram v6.7.0 to generate PDF and PNG of the attached visio file. In the output, ink tools are either missing or appear as distorted lines.

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);

Following code is used to generate the PDF output:

Diagram diagram = new Diagram("test.vsdx");
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 problem of missing text items written by the ink tool pen. We have logged these issues under ticket ID’s DIAGRAMJAVA-50368 and DIAGRAMJAVA-50369 in our bug tracking system. 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.