Download and Configure Aspose.Diagram in PHP

Download Required Libraries

Download required libraries mentioned below. These are the required for executing Aspose.Diagram Java for Ruby examples.

Download Examples from Social Coding Sites

Following releases of running examples are available to download on below mentioned social coding sites:


It is very simple and easy to install Aspose.Diagram Java for PHP, please follow the instructions:

Run following command.

 $ gem install asposediagramjava


Include the required files to export visio drawing to Pdf document.

 require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposediagramjava'

include Asposediagramjava

include Asposediagramjava::ExportToPdf


Let’s understand the above code.

  1. The first line makes sure that the Aspose.Diagram is loaded and available.
  2. Include the files that are required to access the Aspose.Diagram
  3. Initialize the libraries. The aspose Java classes are loaded from the path provided in the aspose.yml file