Convert Visio to PDF format
Export to PDF
Aspose.Diagram for Python via .NET directly writes the information about the API and Version Number in output documents. For example, upon rendering a Drawing to PDF, Aspose.Diagram for .NET populates 应用值为“Aspose.Diagram”的字段和PDF Producer具有值的字段,例如“Aspose.Diagram 17.9”。
请注意,您不能指示 Aspose.Diagram for .NET API 更改或从输出文档中删除此信息。
This article explains how to export a Microsoft Visio diagram to PDF using Aspose.Diagram for Python via .NET API.
使用 [Diagram] 类构造函数读取 diagram 文件,并使用 Save 方法将 diagram 导出为任何支持的图像格式。
The image below shows the VSD diagram that the code snippets below export PDF. You can use other diagram formats (VSS, VSSM, VDX, VST, VSTX, 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.
Below is an image of the output PDF file.
输出PDF文件。 |
---|
Export Microsoft Visio Drawing to PDF
The code samples show how to export Microsoft Visio Drawing to PDF using Python.