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

Free Support Forum - aspose.com

Extra blank page appearing in PDF output


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

Can you pls check.

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:


// 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


// save all Foreground Pages

diagram.save(“D:\AD\test204\Output.pdf”, opts);

We hope, this helps.