Update Speaker Notes Introduction
With Aspose.Slides Cloud, you can update speaker notes in a PowerPoint presentation. You can prepare new information for the notes and use the following API method to update them for a slide.
UpdateNotesSlide
API
Type
Description
Resource
/slides/{name}/slides/{slideIndex}/notesSlide
PUT
Updates notes for a presentation slide.
UpdateNotesSlide
Request Parameters
Name
Type
Location
Required
Description
name
string
path
true
The name of a presentation file.
slideIndex
integer
path
true
The 1-based index of the slide.
dto
object
body
true
The data object containing notes information.
password
string
header
false
The password to open the presentation.
folder
string
query
false
The path to the folder containing the presentation.
storage
string
query
false
The name of the storage contaning the folder
.
In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.
Examples
Update notes with the text “Tell about our company.” for the second slide in the document MyFolder/MyPresentation.pptx saved to the default storage.
cURL Solution
SDK Solutions
C#
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-dotnet
using Aspose.Slides.Cloud.Sdk ;
using Aspose.Slides.Cloud.Sdk.Model ;
using System ;
class Application
{
static void Main ()
{
var slidesApi = new SlidesApi ( "MyClientId" , "MyClientSecret" );
// Prepare notes for the slide.
var notesSlide = new NotesSlide
{
Text = "Tell about our company."
};
// Update the notes for the first slide.
var currentNotesSlide = slidesApi . UpdateNotesSlide ( "MyPresentation.pptx" , 1 , notesSlide , null , "MyFolder" );
// Print the resource reference for the notes slide.
Console . WriteLine ( currentNotesSlide . SelfUri . Href );
}
}
Java
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-java
import com.aspose.slides.ApiException ;
import com.aspose.slides.api.SlidesApi ;
import com.aspose.slides.model.* ;
public class Application {
public static void main ( String [] args ) throws ApiException {
SlidesApi slidesApi = new SlidesApi ( "MyClientId" , "MyClientSecret" );
// Prepare notes for the slide.
NotesSlide notesSlide = new NotesSlide ();
notesSlide . setText ( "Tell about our company." );
// Update the notes for the first slide.
NotesSlide currentNotesSlide = slidesApi . updateNotesSlide ( "MyPresentation.pptx" , 1 , notesSlide , null , "MyFolder" , null );
// Print the resource reference for the notes slide.
System . out . println ( currentNotesSlide . getSelfUri (). getHref ());
}
}
PHP
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php
use Aspose\Slides\Cloud\Sdk\Api\Configuration ;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi ;
use Aspose\Slides\Cloud\Sdk\Model\NotesSlide ;
$configuration = new Configuration ();
$configuration -> setAppSid ( "MyClientId" );
$configuration -> setAppKey ( "MyClientSecret" );
$slidesApi = new SlidesApi ( null , $configuration );
// Prepare notes for the slide.
$notesSlide = new NotesSlide ();
$notesSlide -> setText ( "Tell about our company." );
// Update the notes for the first slide.
$currentNotesSlide = $slidesApi -> updateNotesSlide ( "MyPresentation.pptx" , 1 , $notesSlide , null , "MyFolder" );
// Print the resource reference for the notes slide.
echo $currentNotesSlide -> getSelfUri () -> getHref ();
Ruby
# For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-ruby
require "aspose_slides_cloud"
include AsposeSlidesCloud
configuration = Configuration . new
configuration . app_sid = "MyClientId"
configuration . app_key = "MyClientSecret"
slides_api = SlidesApi . new ( configuration )
# Prepare notes for the slide.
notes_slide = NotesSlide . new
notes_slide . text = "Tell about our company."
# Update the notes for the first slide.
current_notes_slide = slides_api . update_notes_slide ( "MyPresentation.pptx" , 1 , notes_slide , nil , "MyFolder" )
# Print the resource reference for the notes slide.
print current_notes_slide . self_uri . href
Python
# For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-python
import asposeslidescloud
from asposeslidescloud.apis.slides_api import SlidesApi
from asposeslidescloud.models.notes_slide import NotesSlide
slides_api = SlidesApi ( None , "MyClientId" , "MyClientSecret" )
# Prepare notes for the slide.
notes_slide = NotesSlide ()
notes_slide . text = "Tell about our company."
# Update the notes for the first slide.
current_notes_slide = slides_api . update_notes_slide ( "MyPresentation.pptx" , 1 , notes_slide , None , "MyFolder" )
# Print the resource reference for the notes slide.
print ( current_notes_slide . self_uri . href )
Node.js
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-nodejs
const cloud = require ( "asposeslidescloud" );
const slidesApi = new cloud . SlidesApi ( "MyClientId" , "MyClientSecret" );
// Prepare notes for the slide.
const notesSlide = new cloud . NotesSlide ();
notesSlide . text = "Tell about our company." ;
// Update the notes for the first slide.
slidesApi . updateNotesSlide ( "MyPresentation.pptx" , 1 , notesSlide , null , "MyFolder" ). then ( currentNotesSlide => {
// Print the resource reference for the notes slide.
console . log ( currentNotesSlide . body . selfUri . href );
});
C++
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-cpp
#include "asposeslidescloud/api/SlidesApi.h"
using namespace asposeslidescloud :: api ;
int main ()
{
auto slidesApi = std :: make_shared < SlidesApi > ( L "MyClientId" , L "MyClientSecret" );
// Prepare notes for the slide.
auto notesSlide = std :: make_shared < NotesSlide > ();
notesSlide -> setText ( L "Tell about our company." );
// Update the notes for the first slide.
auto currentNotesSlide = slidesApi -> updateNotesSlide ( L "MyPresentation.pptx" , 1 , notesSlide , L "" , L "MyFolder" ). get ();
// Print the resource reference for the notes slide.
std :: wcout << currentNotesSlide -> getSelfUri () -> getHref ();
return 0 ;
}
Perl
# For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-perl
use AsposeSlidesCloud::Configuration ;
use AsposeSlidesCloud::SlidesApi ;
use AsposeSlidesCloud::Object::NotesSlide ;
my $config = AsposeSlidesCloud::Configuration -> new ();
$config -> { app_sid } = "MyClientId" ;
$config -> { app_key } = "MyClientSecret" ;
my $slides_api = AsposeSlidesCloud::SlidesApi -> new ( config => $config );
# Prepare notes for the slide.
my $notes_slide = AsposeSlidesCloud::Object::NotesSlide -> new ();
$notes_slide -> { text } = "Tell about our company." ;
# Update the notes for the first slide.
my %parameters = ( name => "MyPresentation.pptx" , slide_index => 1 , dto => $notes_slide , folder => "MyFolder" );
my $current_notes_slide = $slides_api -> update_notes_slide ( %parameters );
# Print the resource reference for the notes slide.
print $current_notes_slide -> { self_uri } -> { href };
Swift
Go
SDKs
Check Available SDKs to learn how to add an SDK to your project.