Convert Visio to PDF format
Exporting to PDF
Aspose.Diagram for Python via Java directly writes the information about the API and Version Number in output documents. For example, upon rendering a Drawing to PDF, Aspose.Diagram for Java populates 应用值为“Aspose.Diagram”的字段和PDF Producer具有值的字段,例如“Aspose.Diagram 17.9”。
Please note that you cannot instruct Aspose.Diagram for Python via Java to change or remove this information from output Documents.
This article explains how to export a Microsoft Visio diagram to PDF using Aspose.Diagram for Python via Java.
使用 Diagram 类的构造函数读取 diagram 文件,并使用 Save 方法将 diagram 导出为任何支持的图像格式。
VSD diagram is the example drawing file to export PDF. You can use other diagram formats (VSS, VSSX, VSSM, VDX, VST, VSTX, VSTM, VDX, VTX or VSX) as well.
To export VSD diagram to PDF:
- 创建 Diagram 类的实例。
- Call the Diagram classs Save method and set the output format to PDF.
Exporting to PDF Programming Sample
拆分多个页面
Aspose.Diagram for Java allows splitting multiple pages while converting the Microsoft Visio Diagram to PDF. The following code snippet shows the functionality.