Hi @mudassir.fayyaz, can you confirm / clarify how AddShape tasks are meant to be constructed when calling POST /slides/pipeline? I’m using AddSlide followed by several AddShape tasks, but AddShape doesn’t take a Slide ID parameter. The resulting PPTX has two blank slides, so I suppose AddSlide() is working (default blank slide plus one added), but no shapes. Unclear to me how to point the AddShape call to a particular slide.
Obviously the regular shapes endpoint takes slideIndex, I just can’t see how to do that with the pipeline call.
@PresCenter,
Thank you for posting the question.
We have opened the following new ticket(s) in our internal issue tracking system and will address your requirements according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESCLOUD-2083
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@PresCenter,
Our developers have investigated the case.
Please try using the following request:
curl https://api.aspose.cloud/v3.0/slides/pipeline -F "pipeline=@pipeline.json;filename=" -F "file1=@MyPres.pptx" -o "MyUpdatedPres.pptx" -v -H "Authorization: Bearer MyAuthToken"
pipeline.json:
{
"input": {
"template": {
"type": "Request",
"index": 0
}
},
"tasks": [
{
"type": "AddSlide"
},
{
"type": "AddShape",
"shapePath": "slides/-1",
"shape": {
"type": "Shape",
"shapeType": "Rectangle",
"x": 100,
"y": 100,
"width": 500,
"height": 200,
"text": "A shape on the new slide"
}
},
{
"type": "Save",
"format": "Pptx",
"output": {
"type": "Response"
}
}
]
}
Please pay attention to the following:
"shapePath": "slides/-1",
You can specify a negative shape index, and it will count from the end. If we understand correctly, that’s what you need, because the newly added slide is obviously the last one in the list.