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#
Copy
using Aspose.Slides.Cloud.Sdk ;
using Aspose.Slides.Cloud.Sdk.Model ;
using System ;
class Application
{
static void Main ( )
{
var slidesApi = new SlidesApi ( "MyClientId" , "MyClientSecret" );
var notesSlide = new NotesSlide
{
Text = "Tell about our company."
};
var currentNotesSlide = slidesApi . UpdateNotesSlide ( "MyPresentation.pptx" , 1 , notesSlide , null , "MyFolder" );
Console . WriteLine ( currentNotesSlide . SelfUri . Href );
}
}
Java
Copy
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" );
NotesSlide notesSlide = new NotesSlide ();
notesSlide . setText ( "Tell about our company." );
NotesSlide currentNotesSlide = slidesApi . updateNotesSlide ( "MyPresentation.pptx" , 1 , notesSlide , null , "MyFolder" , null );
System . out . println ( currentNotesSlide . getSelfUri (). getHref ());
}
}
PHP
Copy
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 );
$notesSlide = new NotesSlide ();
$notesSlide -> setText ( "Tell about our company." );
$currentNotesSlide = $slidesApi -> updateNotesSlide ( "MyPresentation.pptx" , 1 , $notesSlide , null , "MyFolder" );
echo $currentNotesSlide -> getSelfUri () -> getHref ();
Ruby
Copy
require "aspose_slides_cloud"
include AsposeSlidesCloud
configuration = Configuration . new
configuration . app_sid = "MyClientId"
configuration . app_key = "MyClientSecret"
slides_api = SlidesApi . new ( configuration )
notes_slide = NotesSlide . new
notes_slide . text = "Tell about our company."
current_notes_slide = slides_api . update_notes_slide ( "MyPresentation.pptx" , 1 , notes_slide , nil , "MyFolder" )
print current_notes_slide . self_uri . href
Python
Copy
import asposeslidescloud
from asposeslidescloud.apis.slides_api import SlidesApi
from asposeslidescloud.models.notes_slide import NotesSlide
slides_api = SlidesApi ( None , "MyClientId" , "MyClientSecret" )
notes_slide = NotesSlide ()
notes_slide . text = "Tell about our company."
current_notes_slide = slides_api . update_notes_slide ( "MyPresentation.pptx" , 1 , notes_slide , None , "MyFolder" )
print ( current_notes_slide . self_uri . href )
Node.js
Copy
const cloud = require ( "asposeslidescloud" );
const slidesApi = new cloud . SlidesApi ( "MyClientId" , "MyClientSecret" );
const notesSlide = new cloud . NotesSlide ();
notesSlide . text = "Tell about our company." ;
slidesApi . updateNotesSlide ( "MyPresentation.pptx" , 1 , notesSlide , null , "MyFolder" ). then ( currentNotesSlide => {
console . log ( currentNotesSlide . body . selfUri . href );
});
C++
Copy
#include "asposeslidescloud/api/SlidesApi.h"
using namespace asposeslidescloud :: api ;
int main ()
{
auto slidesApi = std :: make_shared < SlidesApi > ( L "MyClientId" , L "MyClientSecret" );
auto notesSlide = std :: make_shared < NotesSlide > ();
notesSlide -> setText ( L "Tell about our company." );
auto currentNotesSlide = slidesApi -> updateNotesSlide ( L "MyPresentation.pptx" , 1 , notesSlide , L "" , L "MyFolder" ). get ();
std :: wcout << currentNotesSlide -> getSelfUri () -> getHref ();
return 0 ;
}
Perl
Copy
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 );
my $notes_slide = AsposeSlidesCloud::Object::NotesSlide -> new ();
$notes_slide -> { text } = "Tell about our company." ;
my %parameters = ( name => "MyPresentation.pptx" , slide_index => 1 , dto => $notes_slide , folder => "MyFolder" );
my $current_notes_slide = $slides_api -> update_notes_slide ( %parameters );
print $current_notes_slide -> { self_uri } -> { href };
Swift
Go
SDKs
Check Available SDKs to learn how to add an SDK to your project.