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

Free Support Forum - aspose.com

VSDX to PDF - Image not converted

I have a VSDX file containing only one single image covering almost all the canvas/background in my Visio document. When converting this to PDF the image is lost and I get a blank PDF. If I insert another image to my VSDX and some shapes or whatever all this is exported to PDF, but the image of interest is not there. Are there any limitations in Aspose.Diagram regarding image formats ? I’m missing any options or settings here ?
Using Aspose.Diagram v22.3.0 for .NET
When using MS Visio and export to PDF everything is okay in the exported PDF document.


Please try to use below properties during conversion and see if output PDF is fine:

Aspose.Diagram.Saving.PdfSaveOptions pdfSaveOptions = new Diagram.Saving.PdfSaveOptions();

pdfSaveOptions.ExportHiddenPage = true;
pdfSaveOptions.ExportGuideShapes = true;

In case issue still persists, please share your sample Diagram with us so that we can test the scenario in our environment and address it accordingly.

I’m sorry to say, but the problem still exists after implementing the two flags = true
The large image in the attached Visio file is not present in the PDF.

Please see attached VSDX file within the .zip here
22_12808-3 ortofoto.zip (1.8 MB)


An issue as DIAGRAMNET-52762 has been logged in our issue tracking system for further investigation. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMNET-52762) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou

1 Like

Thank you for providing av fix for this issue. Unfortunately the problem still exists when loading and saving a slightly different variant ofthe .VSDX.
Please have a look at this file:22_12808-3 ortofoto2.zip (1.5 MB)


Can you please also share the generated output PDF along with the sample code snippet that you have used for conversion? We will further proceed to assist you accordingly.

The generated output file is completly blank:
22_12808-3 Ortofoto2.pdf (26.8 KB)

Code snippet:
Aspose.Diagram.Saving.PdfSaveOptions options = new Aspose.Diagram.Saving.PdfSaveOptions();
options.Compliance = Aspose.Diagram.Saving.PdfCompliance.Pdf15;
options.ExportHiddenPage = true;
options.ExportGuideShapes = true;
visioDoc.Save(dstFilename, options);


Have you used the latest version of the API for the conversion? We have used the same code snippet with Aspose.Diagram for .NET 22.4 and obtained output PDF was different than the one you shared with us:

Aspose.Diagram.Diagram diagram = new Aspose.Diagram.Diagram(dataDir + "22_12808-3 Lihagen Ortofoto 1140331_1_0.vsdx");
Aspose.Diagram.Saving.PdfSaveOptions pdfSaveOptions = new Diagram.Saving.PdfSaveOptions();
pdfSaveOptions.Compliance = Aspose.Diagram.Saving.PdfCompliance.Pdf15;
pdfSaveOptions.ExportHiddenPage = true;
pdfSaveOptions.ExportGuideShapes = true;
diagram.Save(new FileStream(dataDir + "22_12808-3 Lihagen Ortofoto 1140331_1_0.pdf", FileMode.Create, FileAccess.ReadWrite), pdfSaveOptions);

22_12808-3 Lihagen Ortofoto 1140331_1_0.pdf (1.3 MB)

1 Like

You’re absolutely right. The output from Aspose 22.4 is correct. Thank you !

1 Like