Skip to main content

Aspose.Diagram for Python via .NET is a scalable and feature-rich API to process visio files using Python. API offers Visio file creation, manipulation, conversion and rendering. Developers can format pages to the most granular level, create and manipulate shape, render pages, shapes to PDF and images, and much more - all without any dependency on Microsoft Office or Visio application.

Project description

Product Page | Docs | Demos | Blog | Code Samples | Free Support | Temporary License | EULA

Try our free online apps demonstrating some of the most popular Aspose.diagram functionality.

Aspose.Diagram for Python via .Net is a scalable and feature-rich API to process visio files using Python. API offers Visio file creation, manipulation, conversion, rendering. Developers can format pages to the most granular level, create and manipulate shape, render pages, shapes to PDF and images, and much more - all without any dependency on Microsoft Office or Visio application.

Diagram API Features

Aspose.Diagram offers a wide arrange of features for creating, reading, manipulating and saving visio files:

  • Create visio files via API.

  • Convert shapes to images or PDF.

  • Manage comments & hyperlinks.

  • Convert pages to PDF, XPS & SVG formats.

  • Inter-convert files to popular visio formats.

Performance and Scalability

Aspose.Diagram for Python via .NET is designed to perform equally well on the server or client-side. Aspose.Diagram for Python via .NET is a single .NET library that can be deployed with any .NET application by simply copying it. You do not have to worry about other services or modules.

Supported Document Formats

Aspose.Diagram for Python supports a wide range of formats for loading and saving documents<https://docs.aspose.com/diagram/python-net/supported-file-formats/>, some of them are listed below:

Microsoft Visio: VSD, VSX,VTX, VDX, VSDX, VSTX, VSSX, VSTM, VSSM Fixed Layout: PDF, XPS Images: JPEG, PNG, BMP, SVG, TIFF, GIF, EMF Web: HTML

Detect Diagram Format Programming Sample

from aspose.diagram import *
# For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET
# Detect the format of a diagram file
fileFormatInfo = FileFormatUtil.detectFileFormat(test.vsdx")
# Display the file format
print("File Format: " + str(fileFormatInfo))

Creating a diagram Document: Programming Samples

from aspose.diagram import *
# For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET
# The path to the documents directory.
#Initialize a Diagram class
diagram = Diagram()
# Save diagram in the VSDX format
diagram.save("CreateNewVisio_out.vsdx", SaveFileFormat.VSDX)

Create a PDF with a Diagram

from aspose.diagram import *
# Load an exiting Visio diagram
vsdDiagram = Diagram("Drawing1.vsd")

# Save as PDF
vsdDiagram.save("SaveDiagramToPDFwithAspose_out.pdf", SaveFileFormat.PDF)

Product Page | Docs | Demos | Blog | Code Samples | Free Support | Temporary License | EULA

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

aspose_diagram_python-24.10-py3-none-win_amd64.whl (43.9 MB view hashes)

Uploaded Python 3 Windows x86-64

aspose_diagram_python-24.10-py3-none-win32.whl (38.5 MB view hashes)

Uploaded Python 3 Windows x86

aspose_diagram_python-24.10-py3-none-macosx_11_0_arm64.whl (40.0 MB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

aspose_diagram_python-24.10-py3-none-macosx_10_14_x86_64.whl (51.9 MB view hashes)

Uploaded Python 3 macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page