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

Free Support Forum - aspose.com

Visio conversion and placement of shapes

Hi

I converting a visio file, into pdf, png, gif, and svg. And it does an amazing job. However, some of the shapes are incorrectly aligned with regards to the original visio file. The error persist in all output formats, unless exporting to vsdx, then they are correctly located.

Both source and output are in the attached zip file, and the second file is an SVG converted through VBA.

The code is at a minimum:
var files = Directory.GetFiles(@“c:\visioinput”, “*.vsd”, SearchOption.AllDirectories);

        foreach (var file in files)
        {
            var fi = new FileInfo(file);
            var d = new Diagram(file);

            var so = new ImageSaveOptions(SaveFileFormat.GIF);
            so.CompositingQuality = CompositingQuality.HighQuality;
            so.InterpolationMode = InterpolationMode.HighQualityBicubic;

            
            d.Save(fi.FullName.Replace(".vsd", ".svg"), SaveFileFormat.SVG);
            so.SaveFormat = SaveFileFormat.GIF;
            d.Save(fi.FullName.Replace(".vsd", ".gif"), so);
            d.Save(fi.FullName.Replace(".vsd", ".pdf"), SaveFileFormat.PDF);
            so.SaveFormat = SaveFileFormat.PNG;
            d.Save(fi.FullName.Replace(".vsd", ".png"), so);
            d.Save(fi.FullName.Replace(".vsd", ".2.vsdx"), SaveFileFormat.VSDX);
        }

Do you have an calculation error, or is it the visio file that is at fault?

I have tried with several others, with the same outcome.

Regards
Dennis
visioinput.zip (1.0 MB)
MB 166 292~8_4_Sædevarme_Umemory_166.8.vsd1.svg.zip (39.1 KB) <-- this is converted through VBA.

@hellagutmanndk,

We can find the problem of additional shadow in the output shapes, and a shape is missing while exporting VSD to VSDX. We have logged tickets as follows:

DIAGRAMNET-51484: VSD to PNG - additional shadow in Shapes
DIAGRAMNET-51485: VSD to SVG - additional shadow in Shapes
DIAGRAMNET-51486: VSD to GIF - additional shadow in Shapes
DIAGRAMNET-51487: VSD to PDF - additional shadow in Shapes
DIAGRAMNET-51488: VSD to VSDX - the supply link shape is missing

We have linked your post to these tickets, and will keep you informed regarding any available updates.

These are the snapshot:

Hi again

If look at the shadow problem image. You can also see that the list of colors (on the far left of the visio) is also misaligned as well as some of the number placed around the visio.
This image.png (28.1 KB) shows an example from the visio file you already got.

Regards
Dennis

@hellagutmanndk,

We managed to replicate the problem of misaligned color text and numbers. We have logged tickets as follows:

DIAGRAMNET-51489: VSD to PNG - the text items are misaligned
DIAGRAMNET-51490: VSD to SVG - the text items are misaligned
DIAGRAMNET-51491: VSD to GIF - the text items are misaligned
DIAGRAMNET-51492: VSD to PDF - the text items are misaligned

We have linked your post to these tickets, and will keep you informed regarding any available updates.

@hellagutmanndk,

The linked ticket IDs DIAGRAMNET-51484, DIAGRAMNET-51485 and DIAGRAMNET-51487 have been resolved, and will be included in the next version 18.7 of Aspose.Diagram for .NET API. We will notify you once the next version is published.

I didn’t recieve notification about 51489-51492 being resolved :confused: … but glad that they got resolved :slight_smile:

will they also be available in 18.7?

@hellagutmanndk,

The linked ticket IDs DIAGRAMNET-51489, DIAGRAMNET-51490, DIAGRAMNET-51491 and DIAGRAMNET-51492 have been resolved, and will be incorporated in next version 18.7 of Aspose.Diagram for .NET API. We will notify you once the next version is published.

Can you say anything about when 18.7 is going to be released?

@hellagutmanndk,

It will be released in early next week. We will notify you once it is published.

The issues you have found earlier (filed as DIAGRAMNET-51484,DIAGRAMNET-51485,DIAGRAMNET-51486,DIAGRAMNET-51487,DIAGRAMNET-51488,DIAGRAMNET-51489,DIAGRAMNET-51490,DIAGRAMNET-51491,DIAGRAMNET-51492) have been fixed in this update.

Hey

Found another issue which i didn’t see before. There are missing dots on line junctions. The image on the left is the VBA version.

svg.PNG (149.5 KB)

@hellagutmanndk

Thank you for getting back to us.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID DIAGRAMNET-51505 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

The issues you had found earlier (filed as DIAGRAMNET-51505) have been fixed in this release.