Hi,
Is it possible to export/save all vsd pages as image or in pdf?
Thanks in advance,
Victor
Hi,
Hi,
Thank you for your interest in our Aspose.Diagram product. It is a pure .NET API for working with the MS Visio Object Model. Aspose.Diagram provides better performance and is easier to use to manipulate diagrams and convert files in multiple formats i.e. PDF.JPG etc. For more details please visit documentation links below:
Thanks for information. But if you try for example this code from your link
using Aspose.Diagram;
//Load diagram
Diagram vsdDiagram = new Diagram(@“D:\Templates\Drawing1.vsd”);
//Save as PDF
vsdDiagram.Save(@“D:\Output\Drawing1.pdf”, SaveFileFormat.PDF);
//Save as JPEG
vsdDiagram.Save(@“D:\Output\Drawing1.jpg”, SaveFileFormat.JPEG);
The output pdf will contain only the first page of input vsd file same for jpeg. Is it bug?
Hi,
Hi,
Thank you for your inquiry. Here is the code snippet to extract page as bitmap image:
Diagram diagram = new Diagram("input.vsd");
//Save diagram as BMP or other
ImageSaveOptions options = new ImageSaveOptions(SaveFileFormat.BMP);
options.PageIndex = 1;
MemoryStream stream = new MemoryStream();
diagram.Save(stream, options);
diagram.Save("c:\\temp\\Output.bmp", options);
Please let me know for further assistance and comments.
Thank you that exactly what I need.