SlidesApi api = new SlidesApi("MyClientId", "MyClientSecret");
Shapes allShapes = api.GetShapes("MyPresentation.pptx", 1);
Shapes charts = api.GetShapes("MyPresentation.pptx", 1, shapeType: ShapeType.Chart);
Console.WriteLine($"The slide contains {allShapes.ShapesLinks.Count} shapes, including {charts.ShapesLinks.Count} charts");
SlidesApi api = new SlidesApi("MyClientId", "MyClientSecret");
Shapes allShapes = api.getShapes("MyPresentation.pptx", 1);
Shapes charts = api.getShapes("MyPresentation.pptx", 1, null, null, null, ShapeType.Chart);
System.out.println("The slide contains " + allShapes.getShapesLinks().size() + " shapes, including " + charts.getShapesLinks().size() + " charts");
use Aspose\Slides\Cloud\Sdk\Api\Configuration;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi;
use Aspose\Slides\Cloud\Sdk\Model\ShapeType;
$config = new Configuration();
$config->setAppSid("MyClientId");
$config->setAppKey("MyClientSecret");
$api = new SlidesApi(null, $config);
$allShapes = $api->GetShapes("MyPresentation.pptx", 1);
$charts = $api->GetShapes("MyPresentation.pptx", 1, null, null, null, ShapeType::CHART);
print("The slide contains " . count($allShapes->getShapesLinks()) . " shapes, including " . count($charts->getShapesLinks()) . " charts");
configuration = AsposeSlidesCloud::Configuration.new
configuration.app_sid = "MyClientId"
configuration.app_key = "MyClientSecret"
api = AsposeSlidesCloud::SlidesApi.new(configuration)
all_shapes = api.get_shapes("MyPresentation.pptx", 1)
charts = api.get_shapes("MyPresentation.pptx", 1, nil, nil, nil, AsposeSlidesCloud::ShapeType::CHART)
p("The slide contains " + all_shapes.shapes_links.length + " shapes, including " + charts.shapes_links.length + " charts")
import asposeslidescloud
from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
from asposeslidescloud.models.shape_type import ShapeType
configuration = Configuration()
configuration.app_sid = 'MyClientId'
configuration.app_key = 'MyClientSecret'
api = SlidesApi(configuration)
all_shapes = api.get_shapes("MyPresentation.pptx", 1)
charts = api.get_shapes("MyPresentation.pptx", 1, None, None, None, ShapeType.CHART)
print("The slide contains " + str(all_shapes.shapes_links.length) + " shapes, including " + str(charts.shapes_links.length) + " charts")
const CloudSdk = require("asposeslidescloud");
const api = new CloudSdk.SlidesApi("MyClientId", "MyClientSecret");
api.getShapes("MyPresentation.pptx", 1).then((allShapes) => {
api.getShapes("MyPresentation.pptx", 1, null, null, null, "Chart").then((charts) => {
console.log("The slide contains " + allShapes.body.shapesLinks.length + " shapes, including " + charts.body.shapesLinks.length + " charts");
});
});
use AsposeSlidesCloud::Configuration;
use AsposeSlidesCloud::SlidesApi;
my $config = AsposeSlidesCloud::Configuration->new();
$config->{app_sid} = "MyClientId";
$config->{app_key} = "MyClientSecret";
my $api = AsposeSlidesCloud::SlidesApi->new(config => $config);
my %params = ('name' => 'MyPresentation.pptx', 'slide_index' => 1);
my $all_shapes = $api->get_shapes(%params);
$params{shape_type} = 'Chart';
my $charts = $api->get_shapes(%params);
print "The slide contains " . (scalar @{$all_shapes->{shapes_links}}) . " shapes, including " . (scalar @{$charts->{shapes_links}}) . " charts";
cfg := asposeslidescloud.NewConfiguration()
cfg.AppSid = "MyClientId"
cfg.AppKey = "MyClientSecret"
api := asposeslidescloud.NewAPIClient(cfg)
allShapes, _, e := c.SlidesApi.GetShapes("MyPresentation.pptx", 1, "", "", "", nil)
if e != nil {
fmt.Printf("Error: %v.", e)
}
var shapeType string = "Chart"
charts, _, e := c.SlidesApi.GetShapes("MyPresentation.pptx", 1, "", "", "", &shapeType)
if e != nil {
fmt.Printf("Error: %v.", e)
}
fmt.Printf("The slide contains %v shapes, including %v charts", len(allShapes.getShapesLinks()), len(charts.getShapesLinks()))