Extra blank page appearing in PDF output

Hi,


While converting attached VSD file into PDF, an extra blank page appearing at the end.

Can you pls check.

Thanks,
Rajiv

Hi Rajiv,

Well, there are two types of Visio pages named as Foreground and Background. The last page is Background page. We can ignore it by setting the flag of Foreground pages only:

[Java]

// load VSD drawing
Diagram diagram = **new** Diagram("D:\\AD\\test204\\Company Network.vsd");
// initialize PdfSaveOptions class object
com.aspose.diagram.PdfSaveOptions opts = **new** com.aspose.diagram.PdfSaveOptions();
// set flag of Foreground Pages only
opts.setSaveForegroundPagesOnly(**true** );
// save all Foreground Pages
diagram.save(“D:\AD\test204\Output.pdf”, opts);

We hope, this helps.