Convertir una forma Visio a PDF
Contents
[
Hide
]
** Convertir una forma visio a pdf**
El método ToPdf expuesto por elForma La clase se puede utilizar para convertir a pdf.
El siguiente código muestra cómo:
- Cargue una muestra diagram.
- obtener una página en particular.
- obtener una forma particular.
- convertir forma a pdf.
Forma a PDF
Use el siguiente código en su aplicación .net para convertir una forma visio a pdf.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_Shapes(); | |
// Call a Diagram class constructor to load the VSDX diagram | |
Diagram diagram = new Diagram(dataDir + "ShapeToPdf.vsdx"); | |
// Get a particular page | |
Page page = diagram.Pages[0]; | |
// Get a particular shape | |
Shape shape = page.Shapes[0]; | |
// Shape to Pdf | |
shape.ToPdf("out.pdf"); |