Get an Access Token
curl -X POST "https://api.aspose.cloud/connect/token" \
-d "grant_type=client_credentials&client_id=MyClientId&client_secret=MyClientSecret" \
-H "Content-Type: application/x-www-form-urlencoded"
Set the Settings for All Slides
curl -X PUT "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/headerFooter" \
-H "authorization: Bearer MyAccessToken" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d @GeneralFooter.json
GeneralFooter.json content:
{
"IsDateTimeVisible": true,
"IsFooterVisible": true,
"IsSlideNumberVisible": true,
"DateTimeText": "1/2/2023",
"FooterText": "A general footer."
}
Set the Settings for the First Slide
curl -X PUT "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/slides/1/headerFooter" \
-H "authorization: Bearer MyAccessToken" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-d @FirstFooter.json
FirstFooter.json content:
{
"IsDateTimeVisible": false,
"IsSlideNumberVisible": false,
"FooterText": "The first footer."
}
Get Settings from the First Slide
curl -X GET "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/slides/1/headerFooter" \
-H "authorization: Bearer MyAccessToken" \
-H "accept: application/json"
Set the Settings for All Slides
{
"documentProperties": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/documentProperties",
"relation": "self"
},
"viewProperties": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/viewProperties",
"relation": "self"
},
"slides": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/slides",
"relation": "self"
},
"images": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/images",
"relation": "self"
},
"layoutSlides": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/layoutSlides",
"relation": "self"
},
"masterSlides": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/masterSlides",
"relation": "self"
},
"selfUri": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx",
"relation": "self"
},
"alternateLinks": [
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/odp",
"relation": "alternate",
"linkType": "application/vnd.oasis.opendocument.presentation",
"title": "Download as Odp"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/fodp",
"relation": "alternate",
"linkType": "application/vnd.oasis.opendocument.presentation",
"title": "Download as Fodp"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/ppt",
"relation": "alternate",
"linkType": "application/vnd.ms-powerpoint",
"title": "Download as Ppt"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/pdf",
"relation": "alternate",
"linkType": "application/pdf",
"title": "Download as Pdf"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/tiff",
"relation": "alternate",
"linkType": "image/tiff",
"title": "Download as Tiff"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/xps",
"relation": "alternate",
"linkType": "application/vnd.ms-xpsdocument",
"title": "Download as Xps"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/pps",
"relation": "alternate",
"linkType": "application/vnd.ms-powerpoint",
"title": "Download as Pps"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/ppsx",
"relation": "alternate",
"linkType": "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
"title": "Download as Ppsx"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/pptm",
"relation": "alternate",
"linkType": "application/vnd.ms-powerpoint.presentation.macroEnabled.12",
"title": "Download as Pptm"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/ppsm",
"relation": "alternate",
"linkType": "application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
"title": "Download as Ppsm"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/pot",
"relation": "alternate",
"linkType": "application/vnd.ms-powerpoint",
"title": "Download as Pot"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/potx",
"relation": "alternate",
"linkType": "application/vnd.openxmlformats-officedocument.presentationml.template",
"title": "Download as Potx"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/potm",
"relation": "alternate",
"linkType": "application/vnd.ms-powerpoint.template.macroEnabled.12",
"title": "Download as Potm"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/otp",
"relation": "alternate",
"linkType": "application/vnd.oasis.opendocument.presentation-template",
"title": "Download as Otp"
},
{
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/html",
"relation": "alternate",
"linkType": "text/html",
"title": "Download as Html"
}
]
}
Set the Settings for the First Slide
{
"isDateTimeVisible": false,
"isFooterVisible": true,
"isSlideNumberVisible": false,
"dateTimeText": "1/2/2023",
"footerText": "The first footer.",
"selfUri": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/slides/1/headerFooter",
"relation": "self",
"slideIndex": 1
}
}
Get Settings from the First Slide
{
"isDateTimeVisible": false,
"isFooterVisible": true,
"isSlideNumberVisible": false,
"dateTimeText": "1/2/2023",
"footerText": "The first footer.",
"selfUri": {
"href": "https://api.aspose.cloud/v3.0/slides/MyPresentation.pptx/slides/1/headerFooter",
"relation": "self",
"slideIndex": 1
}
}