Simple VSDX to PDF fails: ZipEntry::ReadHeader(): Bad signature

Using 21.9.0

Diagram diagram = new Diagram(@“C:\Concierge\EigenerTest.vsdx”);
diagram.Save(@“C:\Concierge\EigenerTest.pdf”, SaveFileFormat.Pdf);

EigenerTest.zip (18.2 KB)

@nielsbosma

We were able to notice the similar issue in our environment. Hence, it has been logged as DIAGRAMNET-52306 in our issue management system. We will further investigate it and let you know as soon as it is rectified. Please be patient and give us some time.

We are sorry for the inconvenience.

@nielsbosma

We have investigated the ticket. This source file is a VDX file, not .vsdx file. Please try to rename the source file to “EigenerTest.vdx” or use the following sample code:

Aspose.Diagram.LoadOptions loadOptions = new Aspose.Diagram.LoadOptions(LoadFileFormat.VDX);
Diagram diagram = new Diagram("EigenerTest.vsdx", loadOptions);