Converti una forma Visio in PDF
Contents
[
Hide
]
** Converti una forma visio in pdf**
Il metodo ToPdf esposto daForma class può essere utilizzato per convertire in pdf.
Il codice seguente mostra come:
- Carica un campione diagram.
- ottenere una pagina particolare.
- ottenere una forma particolare.
- convertire la forma in pdf.
Forma in Pdf
Usa il seguente codice nella tua applicazione .net per convertire una forma visio in 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"); |