Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aspose-cloud-kb/ef0c0d40a0854e32148e47324896451f to your computer and use it in GitHub Desktop.
Save aspose-cloud-kb/ef0c0d40a0854e32148e47324896451f to your computer and use it in GitHub Desktop.
using Aspose.Slides.Cloud.Sdk;
using Aspose.Slides.Cloud.Sdk.Model;
using System;
using System.Collections.Generic;
using System.IO;
namespace AsposeTestCodes
{
class Program
{
static void Main(string[] args) // For adding slide notes
{
SlidesApi slidesApi = new SlidesApi("Client ID", "Key");// API object for notes
FilesUploadResult uploadResult = slidesApi.UploadFile("SamplePresentation.pptx",
new MemoryStream(File.ReadAllBytes("SamplePresentation.pptx")));
// Prepare notes for the slide.
var notes = new NotesSlide{Text = "Here are the notes for the speaker"};
// Add notes on the. third slide
var currentNotesSlide = slidesApi.CreateNotesSlide("SamplePresentation.pptx", 3, notes);
Stream stream = slidesApi.DownloadFile("SamplePresentation.pptx");
var fs = new FileStream("UpdatedPresentation.pptx",
FileMode.Create, FileAccess.Write); // File stream for speaker notes
stream.CopyTo(fs);// save to file
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment