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

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

