VSDX to pdf(One extra page with background color)

we use this code to transfert vshx to pdf.
var diagram = new Aspose.Diagram.Diagram(fs);
diagram.Save(outputforpdf, Aspose.Diagram.SaveFileFormat.PDF);

One extra page with background color in the final page.demo.zip (124.4 KB)


We have tested the scenario in our environment while using Aspose.Diagram for .NET 20.12 and were able to replicate the mentioned issue. Therefore, we have logged it as DIAGRAMNET-51974 in our issue tracking system for the sake of correction. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.


Please add this line of sample code before saving the pdf

Aspose.Diagram.Saving.PdfSaveOptions o = new spose.Diagram.Saving.PdfSaveOptions();
o.SaveForegroundPagesOnly = true; //Add this line will not saving the background page


It has been resolved, thank you very much. :smiley: