
노트는 프레젠테이션을 만들 때 필수적인 요소 중 하나입니다. 당신은 나중에 슬라이드 쇼를 관객 앞에서 전달할 때 참조할 수 있도록 발표자 노트를 추가합니다. 프레젠테이션 중에 발표자 노트는 모니터에 표시되지만 관객에게는 보이지 않습니다. 따라서 노트 창은 프레젠테이션을 할 때 언급하고 싶은 토킹 포인트를 저장하는 곳입니다.
Aspose.Slides Cloud는 PowerPoint 슬라이드에서 메모를 추가, 업데이트 또는 제거할 수 있는 기능을 제공합니다. 로컬 시스템 드라이브에 있는 PowerPoint 슬라이드나 클라우드 저장소에 저장된 슬라이드에서 작업을 수행할 수 있습니다.
슬라이드에 메모 추가하기
노트를 추가하려면 NotesSlide/PostAddNotesSlide를 사용해 보아야 합니다. 다음 cURL 명령어를 사용하면 PowerPoint 슬라이드에 노트를 추가할 수 있습니다.
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
Response Body
{<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 코드 스니펫
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 객체 초기화
SlidesApi slidesApi = new SlidesApi(MyAppSid, MyAppKey);
String fileName = "NotesPresentation.pptx";
// NotesSlide dto 개체는 슬라이드 노트를 나타냅니다.
NotesSlide notesSlide = new NotesSlide();
// Notes 영역을 위한 샘플 텍스트
notesSlide.Text = "These are sample presenter notes added using Aspose.Slides Cloud";
// PostAddNotesSlideRequest 개체를 생성하여 PPTX 파일에 주석을 추가하십시오.
PostAddNotesSlideRequest postAddNotesSlideRequest = new PostAddNotesSlideRequest();
// Notes가 추가되어야 하는 파일의 이름
postAddNotesSlideRequest.Name = fileName;
// PowerPoint 프레젠테이션 내 슬라이드의 인덱스
postAddNotesSlideRequest.SlideIndex = 1;
// NotesSlide object
postAddNotesSlideRequest.Dto = notesSlide;
// SlidesApi 인스턴스에 NotesSlideRequest 추가
slidesApi.PostAddNotesSlide(postAddNotesSlideRequest);

Image 1:- 메모 없는 파워포인트 슬라이드

Image 2:- 주석이 추가된 PowerPoint 슬라이드
슬라이드 노트 업데이트
PowerPoint 프레젠테이션 내에서 노트를 업데이트하기 위해 API를 사용할 수도 있습니다. 이 요구 사항을 충족하기 위해 NotesSlide/PutUpdateNotesSlide가 사용됩니다.
cURL 명령
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
Response Body
{<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 코드 스니펫
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 개체 초기화
SlidesApi slidesApi = new SlidesApi(MyAppSid, MyAppKey);
String fileName = "NotesPresentation.pptx";
// NotesSlide dto 객체는 슬라이드 노트를 나타냅니다.
NotesSlide notesSlide = new NotesSlide();
// Notes 영역을 위한 샘플 텍스트
notesSlide.Text = "Notes updated using Aspose.Slides Cloud API";
// PutUpdateNotesSlideRequest 객체를 만들어 PPTX 파일 내의 노트를 업데이트합니다.
PutUpdateNotesSlideRequest putUpdateNotesSlideRequest = new PutUpdateNotesSlideRequest();
// Notes가 업데이트되어야 하는 파일의 이름
putUpdateNotesSlideRequest.Name = fileName;
// PowerPoint 프레젠테이션 내 슬라이드의 인덱스
putUpdateNotesSlideRequest.SlideIndex = 1;
// NotesSlide object
putUpdateNotesSlideRequest.Dto = notesSlide;
// SlidesApi 인스턴스에 PutUpdateNotesSlideRequest 추가
slidesApi.PutUpdateNotesSlide(putUpdateNotesSlideRequest);

Image 3:- 업데이트된 노트가 있는 슬라이드
슬라이드 노트 읽기
PowerPoint 처리 클라우드 API는 기존 슬라이드에서 노트를 읽는 기능도 제공합니다. 단순히 PowerPoint 파일 이름과 노트 세부 정보를 읽고자 하는 슬라이드의 인덱스를 제공하면 됩니다. GetNotesSlide를 사용하면 이 요구 사항을 달성할 수 있습니다.
cURL 명령
curl -X GET "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/2/notesSlide" -H "accept: application/json" -H "authorization: Bearer <jwt token>"
응답 본문
응답 본문은 PowerPoint 프레젠테이션의 특정 슬라이드에서 파싱된 슬라이드 노트를 보여줍니다.
{<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>}
문서 요청 본문에 제공된 노트 슬라이드 정보를 읽어야 하는 경우, PostGetNotesSlide를 사용해 보십시오.
슬라이드 노트 삭제
API는 PowerPoint 슬라이드에서 노트를 제거/삭제하는 DeleteNotesSlide 메서드를 제공합니다.
cURL 명령
curl -X DELETE "https://api.aspose.cloud/v3.0/slides/NotesPresentation.pptx/slides/1/notesSlide" -H "accept: application/json" -H "authorization: Bearer <jwt token>"

Image 4:- 메모가 삭제된 PowerPoint 슬라이드
노트 슬라이드를 특정 이미지 형식으로 변환
PowerPoint 슬라이드에 특정 이미지 형식으로 노트를 렌더링해야 하는 요구 사항이 발생할 수 있습니다. 이 요구 사항을 충족하기 위해서는 API의 GetNotesSlideWithFormat 메서드를 사용해야 합니다.
cURL 명령
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
그 결과, 응답 본문에는 아래와 같이 변환된 이미지가 포함되어 있습니다.

Image 5:- 노트가 포함된 2번째 슬라이드 미리보기

Image 6:- PowerPoint 노트 슬라이드가 JPEG 이미지 형식으로 변환되었습니다.