Konvertieren Sie Visio in Bildformate

Diagramme in Bilddateiformate exportieren

This article explains how to export a Microsoft Visio diagram to an image using Aspose.Diagram for Python via Java.

Use the Diagram class' constructor to read the diagram files and the Save method to export the diagram to any supported image format.The image below shows a VSD file about to be saved to PNG format. You can use other diagram formats (VSS, VSSX, VSSM, VDX, VST, VSTX, VSTM, VDX, VTX or VSX) as well.

Die Beispieldatei VSD.

So exportieren Sie eine diagram in ein Bild:

  • Erstellen Sie eine Instanz der Klasse Diagram.
  • Rufen Sie die Save-Methode der Diagram-Klasse auf und legen Sie das Bildformat fest, in das Sie exportieren möchten. Die Ausgabebilddatei sieht aus wie die Originaldatei.

Die Ausgabedatei PNG.

todo: Bild_alt_Text

Exportieren in eine Bilddatei Programmierbeispiel

Es ist auch möglich, anstelle des gesamten Dokuments eine bestimmte Seite als Bild zu speichern: