GroupDocs.Annotation for Java ทำให้การใส่คำอธิบายงานนำเสนอ PPTX ง่ายขึ้น:
- เปิดไฟล์ PPTX ด้วยอินสแตนซ์ของ Annotator.
- สร้างและกำหนดค่าคำอธิบายที่คุณต้องการ.
- เพิ่ม annotation ลงในงานนำเสนอ.
- บันทึก PPTX ที่มี annotation.
GroupDocs.Annotation for Java ทำให้การใส่คำอธิบายงานนำเสนอ PPTX ง่ายขึ้น:
// ทำ annotation ให้กับงานนำเสนอ PPTX
// เปิด PPTX ด้วยอินสแตนซ์ของ Annotator
Annotator annotator = new Annotator("input.pptx");
try {
// สร้าง area annotation
AreaAnnotation area = new AreaAnnotation();
area.setBox(new Rectangle(100, 100, 200, 80));
area.setBackgroundColor(65535);
area.setPageNumber(0);
area.setMessage("Important");
// เพิ่ม annotation
annotator.add(area);
// บันทึก PPTX ที่มี annotation
annotator.save("annotated.pptx");
} finally {
annotator.dispose();
}
implementation 'com.groupdocs:groupdocs-annotation:25.6.0'
เพิ่มทุกประเภทของ annotation ลงในงานนำเสนอ PowerPoint และจัดการด้วย API ที่เรียบง่าย

ไฮไลท์, ขีดเส้นใต้, ขีดฆ่า หรือแทนที่ข้อความในไฟล์ PPTX.
วาดรูปร่างและใส่ลายน้ำหรือรูปภาพลงบนสไลด์ PPTX.
ดึง, ลบ, นำเข้าและส่งออก PPTX annotations.
// เปิด PPTX ที่ทำ annotation
Annotator annotator = new Annotator("annotated.pptx");
try {
// ดึง annotations ทั้งหมด
List<AnnotationBase> annotations = annotator.get();
// ตรวจสอบแต่ละ annotation
for (AnnotationBase annotation : annotations) {
System.out.println(annotation.getMessage());
}
// บันทึกงานนำเสนอ
annotator.save("output.pptx");
} finally {
annotator.dispose();
}
implementation 'com.groupdocs:groupdocs-annotation:25.6.0'
ดาวน์โหลด GroupDocs.Annotation ฟรีหรือรับสิทธิ์การใช้งานแบบทดลองใช้เพื่อการเข้าถึงแบบเต็ม!
สำรวจเอกสารตัวอย่างรหัสและการสนับสนุนชุมชนเพื่อปรับปรุงประสบการณ์ของคุณ
GroupDocs.Annotation for Java รองรับการทำ annotation ให้กับเอกสารในหลายรูปแบบไฟล์:

