PdfContentEditor

PdfContentEditor

Overview

PdfContentEditor เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java. ทายาทจาก: AutoCloseable.

ให้วิธีการแก้ไขเนื้อหา PDF โดยเฉพาะปฏิบัติงานแทนที่ข้อความ.

หมวดนี้ให้ 17 วิธีในการทํางานกับวัตถุ PdfContentEditor ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: PdfContentEditor, bindPdf, close, createText, deleteStampById, getDocument, getReplaceTextStrategy, getStamps, getTextReplaceOptions, replaceText, save, setTextReplaceOptions. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: document, replaceTextStrategy, textReplaceOptions.

Properties

NameTypeAccessDescription
textReplaceOptionsTextReplaceOptionsReadกลับตัวเลือกสํารองข้อความที่ใช้โดยผู้แก้ไขนี้.
replaceTextStrategyReplaceTextStrategyReadการคืนการตั้งค่าของกลยุทธ์ทดแทนข้อความ.
documentDocumentReadส่งเอกสารที่ติดต่อกลับ.

Methods

SignatureDescription
PdfContentEditor()สร้างตัวอย่างใหม่ {@code PdfContentEditor}.
getTextReplaceOptions()TextReplaceOptionsกลับตัวเลือกสํารองข้อความที่ใช้โดยผู้แก้ไขนี้.
setTextReplaceOptions(options: TextReplaceOptions)กําหนดการเลือกแทนที่ข้อความ.
getReplaceTextStrategy()ReplaceTextStrategyการคืนการตั้งค่าของกลยุทธ์ทดแทนข้อความ.
bindPdf(inputFile: String)booleanเชื่อมไฟล์ PDF กับการจัดทํานี้.
bindPdf(inputStream: InputStream)booleanการผูกพัน PDF จากการส่งเข้า.
bindPdf(document: Document)booleanเชื่อมต่อ {@link Document} ที่มีอยู่กับผู้แก้ไขนี้.
save(outputFile: String)booleanเก็บเอกสารที่ผูกเข้าเป็นไฟล์.
save(outputStream: OutputStream)booleanเก็บเอกสารที่เชื่อมต่อไปยังสตรีมการออก.
replaceText(searchText: String, replaceText: String)booleanเปลี่ยนแปลงทุกครั้งที่คํานวณที่ถูกกําหนดเกิดขึ้นในเอกสารทั้งหมด.
replaceText(searchText: String, pageNumber: int, replaceText: String)booleanเปลี่ยนแปลงทุกครั้งที่บทความที่ถูกกําหนดอยู่ในหน้าเฉพาะเจาะจง.
getDocument()Documentส่งเอกสารที่ติดต่อกลับ.
getStamps(pageNumber: int)StampInfo[]ส่งกลับเมตาเดทตราที่เก็บไว้ในหน้า.
deleteStampById(pageNumber: int, stampId: int)booleanลบรายการเมตาข้อมูลของตราโดย ID ตรา.
deleteStampById(stampId: int)booleanลบรายการเมตาเดทราคาโดย id ของตราจากทุกหน้า.
createText(rect: org.aspose.pdf.Rectangle, title: String, contents: String, open: boolean, icon: String, pageNumber: int)booleanสร้าง {@link org.aspose.pdf.annotations.TextAnnotation} บนหน้าที่ให้ในสี่เหลี่ยมที่ได้รับการแสดง.
close()ปิด editor และปล่อยเอกสารที่ผูกพัน.

See Also

 ภาษาไทย