You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please, look at [Examples](https://github.com/aspose-diagram-cloud/aspose-diagram-cloud-php/blob/master/EXAMPLES.md) document for basic usage or use the [Examples](https://github.com/aspose-diagram-cloud/aspose-diagram-cloud-php/blob/master/Examples) folder for more sophisticated scenarios.
72
72
73
-
## Use PHP Code to Convert VDX Diagram to other Formats
73
+
74
+
## Create New VDX Diagram File in PHP
74
75
75
76
```php
76
-
require_once(__DIR__ . '/vendor/autoload.php');
77
-
require_once(__DIR__ . '/Utils.php');
78
-
79
-
use Aspose\Diagram\Cloud\Api\DiagramFileApi;
80
-
use \Aspose\Diagram\Cloud\Configuration;
81
-
use \Aspose\Diagram\Cloud\Model;
82
-
use \Aspose\Diagram\Cloud\ObjectSerializer;
83
-
84
-
class DiagramFile {
85
-
86
-
public $diagramApi;
87
-
88
-
public function __construct() {
89
-
$this->diagramApi = new DiagramFileApi();
90
-
$config = $this->diagramApi->getConfig();
91
-
$token = Utils::getAccessToken();
92
-
$config ->setAccessToken($token);
93
-
}
94
-
95
-
public function saveFileAsAnotherFormat() {
96
-
$fileName ='file_get_1.vdx';
97
-
$isOverwrite = 'true';
98
-
$folder= "";
99
-
$format = new \Aspose\Diagram\Cloud\Model\FileFormatRequest();
0 commit comments