SlidesApi api = new SlidesApi("MyClientId", "MyClientSecret");
int slideIndex = 5;
Stream file = File.OpenRead("shapes.svg");
Shapes response = api.ImportShapesFromSvg("MyPresentation.pptx", slideIndex, file, 50, 50, 300, 300, new List<int> { 1, 3, 5 });
Console.WriteLine("The slide contains " + response.ShapesLinks.Count + " shapes.");
SlidesApi api = new SlidesApi("MyClientId", "MyClientSecret");
int slideIndex = 5;
byte[] file = Files.readAllBytes(Paths.get("shapes.svg"));
Shapes response = api.importShapesFromSvg("MyPresentation.pptx", slideIndex, file, 50, 50, 300, 300, Arrays.asList(1,3,5), null, null, null, null);
System.out.println("The slide contains " + response.getShapesLinks().size() + " shapes.");
use Aspose\Slides\Cloud\Sdk\Api\Configuration;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi;
use Aspose\Slides\Cloud\Sdk\Model\Shapes;
$config = new Configuration();
$config->setAppSid("MyClientId");
$config->setAppKey("MyClientSecret");
$api = new SlidesApi(null, $config);
$slideIndex = 5;
$file = fopen("shapes.svg", 'r');
$result = $api->importShapesFromSvg("MyPresentation.pptx", $slideIndex, $file, 50, 50, 300, 300, [1,2,3]);
print("The slide contains " . count($result->getShapesLinks()) . " shapes.");
configuration = AsposeSlidesCloud::Configuration.new
configuration.app_sid = "MyClientId"
configuration.app_key = "MyClientSecret"
api = AsposeSlidesCloud::SlidesApi.new(configuration)
#Code example will be added soon.
import asposeslidescloud
from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
configuration = Configuration()
configuration.app_sid = 'MyClientId'
configuration.app_key = 'MyClientSecret'
api = SlidesApi(configuration)
slide_index = 5
with open("shapes.svg", 'rb') as f:
source = f.read()
response = api.import_shapes_from_svg("MyPresentation.pptx", slide_index, source, 50, 50, 300, 300, [1, 3, 5])
print(f"The slide contains { len(response.shapes_links) } shapes.")
const CloudSdk = require("asposeslidescloud");
const fs = require("fs");
const api = new CloudSdk.SlidesApi("MyClientId", "MyClientSecret");
const slideIndex = 5;
const stream = fs.createReadStream("shapes.svg");
let response = await api.importShapesFromSvg("MyPresentation.pptx", slideIndex, stream, 50, 50, 300, 300, [1, 3, 5]);
console.log("The slide contains " + response.body.shapesLinks.length + " shapes.");
cfg := asposeslidescloud.NewConfiguration()
cfg.AppSid = "MyClientId"
cfg.AppKey = "MyClientSecret"
api := asposeslidescloud.NewAPIClient(cfg)
fileName := "MyPresentation.pptx"
var slideIndex int32 = 5
var x int32 = 50
var y int32 = 50
var width int32 = 300
var height int32 = 300
document, e := ioutil.ReadFile("shapes.svg")
shapes := []int32{1, 3, 5}
response, _, e := api.SlidesApi.ImportShapesFromSvg(fileName, slideIndex, document, &x, &y, &width, &height, shapes, nil, "", "", "")
if e != nil {
fmt.Printf("Error: %v.", e)
return
}
fmt.Printf("The slide contains %v shapes.", len(response.GetShapesLinks()))
use AsposeSlidesCloud::Configuration;
use AsposeSlidesCloud::SlidesApi;
use AsposeSlidesCloud::Object::SlideComment;
my $config = AsposeSlidesCloud::Configuration->new();
$config->{app_sid} = "MyClientId";
$config->{app_key} = "MyClientSecret";
my $api = AsposeSlidesCloud::SlidesApi->new(config => $config);
#Code example will be added soon.