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 initialize_aspose_Diagram
Let’s understand the above code.
- The first line makes sure that the Aspose.Diagram is loaded and available.
- Include the files that are required to access the Aspose.Diagram
- Initialize the libraries. The aspose Java classes are loaded from the path provided in the aspose.yml file