Read Speaker Notes Introduction
With Aspose.Slides Cloud, you can retrieve speaker notes added to a slide and information of shapes added to a notes page, including header and footer.
The following methods allow you to read information of notes from presentations saved to a storage or local file.
GetNotesSlide
API
Type
Description
Resource
/slides/{name}/slides/{slideIndex}/notesSlide
GET
Retrieves information of slide notes and notes page from a presentation.
GetNotesSlide
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.
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
Read speaker notes added to the first slide in the document MyFolder/MyPresentation.pptx saved to the default storage.
cURL Solution
SDK Solutions
C#
Copy
using Aspose.Slides.Cloud.Sdk ;
using System ;
class Application
{
static void Main ( )
{
var slidesApi = new SlidesApi ( "MyClientId" , "MyClientSecret" );
var notesSlide = slidesApi . GetNotesSlide ( "MyPresentation.pptx" , 1 , null , "MyFolder" );
Console . WriteLine ( "Speaker notes: " + notesSlide . Text );
}
}
Java
Copy
import com.aspose.slides.ApiException ;
import com.aspose.slides.api.SlidesApi ;
public class Application {
public static void main ( String [] args ) throws ApiException {
SlidesApi slidesApi = new SlidesApi ( "MyClientId" , "MyClientSecret" );
NotesSlide notesSlide = slidesApi . getNotesSlide ( "MyPresentation.pptx" , 1 , null , "MyFolder" , null );
System . out . println ( "Speaker notes: " + notesSlide . getText ());
}
}
PHP
Copy
use Aspose \Slides \Cloud \Sdk \Api \Configuration ;
use Aspose \Slides \Cloud \Sdk \Api \SlidesApi ;
$configuration = new Configuration ();
$configuration -> setAppSid ( "MyClientId" );
$configuration -> setAppKey ( "MyClientSecret" );
$slidesApi = new SlidesApi ( null , $configuration );
$notesSlide = $slidesApi -> getNotesSlide ( "MyPresentation.pptx" , 1 , null , "MyFolder" );
echo "Speaker notes: " , $notesSlide -> getText ();
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 = slides_api . get_notes_slide ( "MyPresentation.pptx" , 1 , nil , "MyFolder" )
print "Speaker notes: " , notes_slide . text
Python
Copy
import asposeslidescloud
from asposeslidescloud.apis.slides_api import SlidesApi
slides_api = SlidesApi ( None , "MyClientId" , "MyClientSecret" )
notes_slide = slides_api . get_notes_slide ( "MyPresentation.pptx" , 1 , None , "MyFolder" )
print ( "Speaker notes:" , notes_slide . text )
Node.js
Copy
const cloud = require ( "asposeslidescloud" );
const slidesApi = new cloud . SlidesApi ( "MyClientId" , "MyClientSecret" );
slidesApi . getNotesSlide ( "MyPresentation.pptx" , 1 , null , "MyFolder" ). then ( notesSlide => {
console . log ( "Speaker notes:" , notesSlide . body . text );
});
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 = slidesApi -> getNotesSlide ( L "MyPresentation.pptx" , 1 , L "" , L "MyFolder" ). get ();
std :: wcout << "Speaker notes: " << notesSlide -> getText ();
return 0 ;
}
Perl
Copy
use AsposeSlidesCloud::Configuration ;
use AsposeSlidesCloud::SlidesApi ;
my $config = AsposeSlidesCloud::Configuration -> new ();
$config -> { app_sid } = "MyClientId" ;
$config -> { app_key } = "MyClientSecret" ;
my $slides_api = AsposeSlidesCloud::SlidesApi -> new ( config => $config );
my %parameters = ( name => "MyPresentation.pptx" , slide_index => 1 , folder => "MyFolder" );
my $notes_slide = $slides_api -> get_notes_slide ( %parameters );
print "Speaker notes: " . $notes_slide -> { text };
Swift
Go
GetNotesSlideOnline
API
Type
Description
Resource
/slides/slides/{slideIndex}/notesSlide
POST
Retrieves information of slide notes and notes page from a presentation.
GetNotesSlideOnline
Request Parameters
Name
Type
Location
Required
Description
document
file
form data
true
The data of the presentation.
slideIndex
integer
path
true
The 1-based index of the slide.
password
string
header
false
The password to open the presentation.
Examples
Read speaker notes added to the first slide in a presentation saved to the file MyPresentation.pptx .
cURL Solution
SDK Solutions
C#
Copy
using Aspose.Slides.Cloud.Sdk ;
using System ;
using System.IO ;
class Application
{
static void Main ( )
{
var slidesApi = new SlidesApi ( "MyClientId" , "MyClientSecret" );
using var documentStream = File . OpenRead ( "MyPresentation.pptx" );
var notesSlide = slidesApi . GetNotesSlideOnline ( documentStream , 1 );
Console . WriteLine ( "Speaker notes: " + notesSlide . Text );
}
}
Java
Copy
import com.aspose.slides.ApiException ;
import com.aspose.slides.api.SlidesApi ;
import java.io.IOException ;
import java.nio.file.Files ;
import java.nio.file.Paths ;
public class Application {
public static void main ( String [] args ) throws ApiException , IOException {
SlidesApi slidesApi = new SlidesApi ( "MyClientId" , "MyClientSecret" );
byte [] documentData = Files . readAllBytes ( Paths . get ( "MyPresentation.pptx" ));
NotesSlide notesSlide = slidesApi . getNotesSlideOnline ( documentData , 1 , null );
System . out . println ( "Speaker notes: " + notesSlide . getText ());
}
}
PHP
Copy
use Aspose \Slides \Cloud \Sdk \Api \Configuration ;
use Aspose \Slides \Cloud \Sdk \Api \SlidesApi ;
$configuration = new Configuration ();
$configuration -> setAppSid ( "MyClientId" );
$configuration -> setAppKey ( "MyClientSecret" );
$slidesApi = new SlidesApi ( null , $configuration );
$documentStream = fopen ( "MyPresentation.pptx" , "r" );
$notesSlide = $slidesApi -> getNotesSlideOnline ( $documentStream , 1 );
echo "Speaker notes: " , $notesSlide -> getText ();
Ruby
Copy
require "aspose_slides_cloud"
include AsposeSlidesCloud
configuration = Configuration . new
configuration . app_sid = "MyClientId"
configuration . app_key = "MyClientSecret"
slides_api = SlidesApi . new ( configuration )
document_data = File . binread ( "MyPresentation.pptx" )
notes_slide = slides_api . get_notes_slide_online ( document_data , 1 )
print "Speaker notes: " , notes_slide . text
Python
Copy
import asposeslidescloud
from asposeslidescloud.apis.slides_api import SlidesApi
slides_api = SlidesApi ( None , "MyClientId" , "MyClientSecret" )
with open ( "MyPresentation.pptx" , "rb" ) as document_stream :
notes_slide = slides_api . get_notes_slide_online ( document_stream , 1 )
print ( "Speaker notes:" , notes_slide . text )
Node.js
Copy
const cloud = require ( "asposeslidescloud" );
const fs = require ( "fs" );
const slidesApi = new cloud . SlidesApi ( "MyClientId" , "MyClientSecret" );
documentStream = fs . createReadStream ( "MyPresentation.pptx" );
slidesApi . getNotesSlideOnline ( documentStream , 1 ). then ( notesSlide => {
console . log ( "Speaker notes:" , notesSlide . body . text );
});
C++
Copy
#include "asposeslidescloud/api/SlidesApi.h"
using namespace asposeslidescloud :: api ;
int main ()
{
auto slidesApi = std :: make_shared < SlidesApi > ( L "MyClientId" , L "MyClientSecret" );
auto documentStream = std :: make_shared < std :: ifstream > ( "MyPresentation.pptx" , std :: ios :: binary );
auto fileContent = std :: make_shared < HttpContent > ();
fileContent -> setData ( documentStream );
auto notesSlide = slidesApi -> getNotesSlideOnline ( fileContent , 1 ). get ();
std :: wcout << "Speaker notes: " << notesSlide -> getText ();
return 0 ;
}
Perl
Copy
use AsposeSlidesCloud::Configuration ;
use AsposeSlidesCloud::SlidesApi ;
use File::Slurp ;
my $config = AsposeSlidesCloud::Configuration -> new ();
$config -> { app_sid } = "MyClientId" ;
$config -> { app_key } = "MyClientSecret" ;
my $slides_api = AsposeSlidesCloud::SlidesApi -> new ( config => $config );
my $document_data = read_file ( "MyPresentation.pptx" , { binmode => ":raw" });
my %parameters = ( document => $document_data , slide_index => 1 );
my $notes_slide = $slides_api -> get_notes_slide_online ( %parameters );
print "Speaker notes: " . $notes_slide -> { text };
Swift
Go
SDKs
Check Available SDKs to learn how to add an SDK to your project.