Convert Visio to PDF format

Exporting to PDF

This article explains how to export a Microsoft Visio diagram to PDF using Aspose.Diagram for Java API.

Utilizzare ilDiagram class' per leggere i file diagram e il metodo Save per esportare diagram in qualsiasi formato di immagine supportato.

The image below shows the VSD diagram that the code snippets below export PDF. You can use other diagram formats (VSS, VSSX, VSSM, VDX, VST, VSTX, VSTM, VDX, VTX or VSX) as well.

Il file sorgente.

cose da fare:immagine_alt_testo

To export VSD diagram to PDF:

  1. Creare un’istanza della classe Diagram.
  2. Call the Diagram classs Save method and set the output format to PDF.

Below is an image of the output PDF file.

Il file di output PDF.

cose da fare:immagine_alt_testo

Exporting to PDF Programming Sample

Dividi più pagine

Aspose.Diagram for Java allows splitting multiple pages while converting the Microsoft Visio Diagram to PDF. The following code snippet shows the functionality.  

Usa pagina salva richiamata

In case you have multiple pages, Aspose.Diagram for Java allows using page saving callback while converting the Microsoft Visio Diagram to PDF. The following code snippet shows the functionality.  

Classe TestDiagramPageSavingCallback