Visio Şeklini Pdf'ye Dönüştür
Contents
[
Hide
]
** visio şeklini pdf’ye dönüştür**
Tarafından sunulan ToPdf yöntemiŞekil sınıf, pdf’ye dönüştürmek için kullanılabilir.
Aşağıdaki kod nasıl yapılacağını gösterir:
- Bir numune yükleyin diagram.
- belirli bir sayfa alın.
- Belirli bir şekil elde edin.
- şekli pdf’ye dönüştür.
Pdf’ye Şekil Ver
Bir visio şeklini pdf’ye dönüştürmek için java uygulamanızda aşağıdaki kodu kullanın.
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(ShapeToPdf.class);
// Call a Diagram class constructor to load the VSDX diagram
Diagram diagram = new Diagram(dataDir + "ShapeToPdf.vsdx");
// Get a particular page
Page page = diagram.getPages().get(0);
// Get a particular shape
Shape shape = page.getShapes().get(0);
// Shape to Pdf
shape.toPdf("out.pdf");