Slaytlarındaki Notların Önizlemesi

Notlar, bir sunum oluştururken temel bileşenlerden biridir. Sunumunuzu izleyici önünde sunarken daha sonra başvurmak için konuşmacı notlarını ekleyersiniz. Sunum sırasında, konuşmacı notları monitörünüzde görünür, ancak izleyiciye görünmez. Bu nedenle, Notlar paneli, sunumunuzu verirken bahsetmek istediğiniz konuşma noktalarını saklamak için yerdir.

Aspose.Slides Cloud, PowerPoint slaytlarından not ekleme, güncelleme veya kaldırma yetenekleri sunar. Bu işlemi yerel sistem sürücüsünde bulunan veya Cloud depolamada saklanan PowerPoint slaytları üzerinde gerçekleştirebilirsiniz.

Slaytlara Not Ekleyin

Not eklemek için, NotesSlide/PostAddNotesSlide kullanmayı denemelisiniz. Aşağıdaki cURL komutu, PowerPoint slaytlarına not eklemenizi sağlar.

curl -X POST "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide" -H  "accept: application/json" -H  "authorization: Bearer <jwt token>" -H  "Content-Type: application/json" -d "{  \"Text\": \"These are sample presenter notes added using Aspose.Slides Cloud\",}"

Request URL

https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide

Yanıt Gövdesi

{<strong>
  </strong>"text":** **"These are sample presenter notes added using Aspose.Slides Cloud",<strong>
  </strong>"shapes":** **{<strong>
    </strong>"uri":** **{<strong>
      </strong>"href":** **"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide/shapes",<strong>
      </strong>"relation":** **"self"<strong>
    </strong>}<strong>
  </strong>},<strong>
  </strong>"selfUri":** **{<strong>
    </strong>"href":** **"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide",<strong>
    </strong>"relation":** **"self"<strong>
  </strong>}<strong>
</strong>}

C#.NET kod parçası

string MyAppKey = "xxxxxxxx";    // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = "xxxxxxxx";    // Get AppKey and AppSID from https://dashboard.aspose.cloud/

// Aspose.Slides Cloud nesnesini başlatın
SlidesApi slidesApi = new SlidesApi(MyAppSid, MyAppKey);
String fileName = "NotesPresentation.pptx";            

// NotesSlide dto nesnesi, Slayt notlarını temsil etmek için.
NotesSlide notesSlide = new NotesSlide();
// notlar alanı için örnek metin
notesSlide.Text = "These are sample presenter notes added using Aspose.Slides Cloud";

// PostAddNotesSlideRequest nesnesi oluşturun ve PPTX dosyasına notlar ekleyin.
PostAddNotesSlideRequest postAddNotesSlideRequest = new PostAddNotesSlideRequest();
// notların eklenmesi gereken dosyanın adı
postAddNotesSlideRequest.Name = fileName;
// PowerPoint sunumundaki slaytın indeksi
postAddNotesSlideRequest.SlideIndex = 1;
// NotesSlide nesnesi
postAddNotesSlideRequest.Dto = notesSlide;

// NotesSlideRequest'i SlidesApi örneğine ekleyin
slidesApi.PostAddNotesSlide(postAddNotesSlideRequest);
Notlar olmadan örnek slaytlar

Resim 1:- Notlar olmadan PowerPoint slaytı

PowerPoint Slaytı ile Notlar

Görüntü 2:- Eklenmiş notlarla PowerPoint slaytı

Slide Notlarını Güncelle

PowerPoint sunumundaki notları güncellemek için API’yi de kullanabilirsiniz. Bu gereksinimi karşılamak için, NotesSlide/PutUpdateNotesSlide kullanılır.

cURL komutu

curl -X PUT "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide" -H  "accept: application/json" -H  "authorization: Bearer <jwt token>" -H  "Content-Type: application/json" -d "{  \"Text\": \"Notes updated using Aspose.Slides Cloud API\",  \"Shapes\": {    \"Uri\": {      \"Href\": \"https://products.aspose.cloud/slides/curl\",       \"Title\": \"Aspose.Slides Cloud for cURL\"    }  }}"

Request URL

https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide

Yanıt Gövdesi

{<strong>
  </strong>"text":** **"Notes updated using Aspose.Slides Cloud API",<strong>
  </strong>"shapes":** **{<strong>
    </strong>"uri":** **{<strong>
      </strong>"href":** **"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide/shapes",<strong>
      </strong>"relation":** **"self"<strong>
    </strong>}<strong>
  </strong>},<strong>
  </strong>"selfUri":** **{<strong>
    </strong>"href":** **"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide",<strong>
    </strong>"relation":** **"self"<strong>
  </strong>}<strong>
</strong>}

C#.NET Kod kesiti

string MyAppKey = "xxxxxxxx";    // Get AppKey and AppSID from https://dashboard.aspose.cloud/
string MyAppSid = "xxxxxxxx";    // Get AppKey and AppSID from https://dashboard.aspose.cloud/

// Aspose.Slides Cloud nesnesini başlat
SlidesApi slidesApi = new SlidesApi(MyAppSid, MyAppKey);
String fileName = "NotesPresentation.pptx";            

// NotesSlide dto nesnesi, Slide notlarını temsil etmek için.
NotesSlide notesSlide = new NotesSlide();
// notlar alanı için örnek metin
notesSlide.Text = "Notes updated using Aspose.Slides Cloud API";

// PutUpdateNotesSlideRequest objesi oluşturun, PPTX dosyasındaki Notları güncellemek için.
PutUpdateNotesSlideRequest putUpdateNotesSlideRequest = new PutUpdateNotesSlideRequest();

// notların güncellenmesi gereken dosyanın adı
putUpdateNotesSlideRequest.Name = fileName;
// PowerPoint sunumundaki slaytın dizini
putUpdateNotesSlideRequest.SlideIndex = 1;
// NotesSlide object
putUpdateNotesSlideRequest.Dto = notesSlide;

// SlidesApi örneğine PutUpdateNotesSlideRequest ekleyin.
slidesApi.PutUpdateNotesSlide(putUpdateNotesSlideRequest);
PowerPoint Slayt notları güncellendi

Resim 3:- Güncellenmiş Notlar ile Slayt

Slide Notlarını Oku

The PowerPoint işleme Cloud API’si ayrıca mevcut slayttaki notları okuma yeteneklerini de sunar. Okumak istediğiniz notların detayları için yalnızca PowerPoint dosya adını ve slaydın indeksini sağlamanız gerekir. GetNotesSlide, bu gereksinimi yerine getirmenizi sağlar.

cURL komutu

curl -X GET "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide" -H  "accept: application/json" -H  "authorization: Bearer <jwt token>"

Response body

Yanıt gövdesi, bir PowerPoint sunumunun belirli bir slidinden çıkarılan notları gösterir.

{<strong>
  </strong>"text":** **"This is second slide of PowerPoint presentation",<strong>
  </strong>"shapes":** **{<strong>
    </strong>"uri":** **{<strong>
      </strong>"href":** **"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide/shapes",<strong>
      </strong>"relation":** **"self"<strong>
    </strong>}<strong>
  </strong>},<strong>
  </strong>"selfUri":** **{<strong>
    </strong>"href":** **"https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide",<strong>
    </strong>"relation":** **"self"<strong>
  </strong>}<strong>
</strong>}

Eğer talep edilen belge için notlar slayt bilgilerini okumanız gerekiyorsa, lütfen PostGetNotesSlide kullanmayı deneyin.

Slide Notlarını Sil

API, PowerPoint slaytından notları kaldırmak/silmek için DeleteNotesSlide yöntemini sunar.

cURL komutu

curl -X DELETE "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide" -H  "accept: application/json" -H  "authorization: Bearer <jwt token>"
Slide'dan silinen notlar

Görüntü 4:- Silinmiş notlar içeren PowerPoint slaytı

Notlar Slidelerini belirli Bir Görüntü Formatına Dönüştür

PowerPoint slaytlarında notları belirli görüntü formatlarına render etmek için bir gereksinimle karşılaşabilirsiniz. Bu gereksinimi karşılamak için API’nin GetNotesSlideWithFormat metodunu kullanmanız gerekir.

cURL komutu

curl -X GET "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide/Jpeg" -H  "accept: multipart/form-data" -H  "authorization: Bearer "

Request URL

https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide/Jpeg

Sonuç olarak, yanıt gövdesi aşağıda gösterildiği gibi dönüştürülmüş bir görüntü içermektedir.

İkinci Slayt ile Notlar

Resim 5:- Notları içeren 2. slaytın önizlemesi

Notes Slide exported image

Image 6:- PowerPoint Notu slaytının JPEG resim formatına dönüştürülmesi