Hello,
I am using aspose.diagram v6.7.0 to generate PDF and image outputs (png, jpeg, svg etc.) from the pages in the attached visio file. The output takes a huge amount of time.
For Page-1, output takes more than 40 seconds.
For Page-2, output takes 8-10 seconds, which is also a lot of time.
Ideally it should not take more than 1-2 seconds for the output.
THIS ISSUE HAS BECOME A SHOW-STOPPER ISSUE FOR US. IT NEEDS TO BE FIXED IMMEDIATELY.
Following code is used to generate the PDF output:
Diagram diagram = new Diagram("DNetwork.vsd");
String pageName = "Page-1";
Page srcPage = diagram.getPages().getPage(pageName);
File outputFile = new File("output.pdf");
String imageFormat = "pdf";
PdfSaveOptions options = new PdfSaveOptions();
int pageIndex = 0;
for (Page page : (Iterable) diagram.getPages()) {
if (page.getID() == srcPage.getID()) {
options.setPageIndex(pageIndex);
options.setPageCount(1); break;
options.setPageCount(1); break;
}
pageIndex++;
}
long start = System.currentTimeMillis();
diagram.save(outputFile.getAbsolutePath(), options);
long end = System.currentTimeMillis();
System.out.println("Time taken for PDF output : " + (end - start));
Can you please analyse this issue.
Thanks,
Neha