Java에서 PPTX의 메모 및 메모 작성자 제거
Aspose.Slides for Java를 사용하여 프레젠테이션 파일에서 메모와 메모 작성자를 제거하세요.
Java로 PPTX에서 메모 제거
Aspose.Slides for Java를 사용하면 PPTX 프레젠테이션에서 메모와 메모 작성자를 제거할 수 있습니다. Presentation 클래스로 파일을 로드하고, getCommentAuthors에서 가져온 ICommentAuthor 개체를 반복하여 메모를 지운 다음, 업데이트된 프레젠테이션을 저장하세요.
PPTX에서 주석 삭제 – Java
Presentation presentation = new Presentation("presentation.pptx");
try {
for (ICommentAuthor commentAuthor : presentation.getCommentAuthors())
{
commentAuthor.getComments().clear();
}
presentation.getCommentAuthors().clear();
presentation.save("cleaned-presentation.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}Java로 PPTX에서 메모를 제거하는 방법
PPTX 프레젠테이션에서 메모와 메모 작성자를 제거하려면 다음 단계를 따르세요.
- Aspose.Slides for Java를 설치합니다. 설치를 참조하세요.
Presentation클래스로 PPTX 파일을 로드합니다.getCommentAuthors에서 가져온ICommentAuthor개체를 반복합니다.getComments().clear()로 각 작성자의 메모를 지웁니다.- 메모 작성자 컬렉션을 비우고 업데이트된 PPTX 파일을 저장합니다.
Aspose.Slides로 구축
온라인에서 PPTX 메모 제거
무료 Aspose.Slides Annotation 앱은 위 코드와 동일한 API인 Aspose.Slides for Java로 구축되었습니다. 앱을 열고 내 PPTX 파일로 API가 무엇을 할 수 있는지 확인해 보세요.
- 브라우저에서 실행되며 설치가 필요 없습니다.
- 코드를 작성하기 전에 Aspose.Slides가 메모를 제거하는 방식을 확인하세요.
- PPTX 파일의 모든 메모를 제거합니다.
- 정리된 파일을 다운로드합니다.
주석에 지원되는 기타 형식
Java를 사용하면 다른 형식에서도 주석을 제거할 수 있습니다.