PdfContentEditor
ภาพรวม
PdfContentEditor เป็นคลาสใน Aspose.PDF FOSS สำหรับ C++.
PdfContentEditor.ReplaceText(srcText, destText) ค้นหาทั้งเอกสารและแทนที่สตริงที่ตรงกัน, คืนค่า true เมื่อมีการแทนที่อย่างน้อยหนึ่งรายการ.
คลาสนี้ให้ 22 เมธอดสำหรับทำงานกับอ็อบเจ็กต์ PdfContentEditor ในโปรแกรม C++ เมธอดที่มีให้รวมถึง: AddDocumentAdditionalAction, AddDocumentAttachment, ChangeViewerPreference, DeleteAttachments, DeleteImage, DeleteStamp, DeleteStampById, DeleteStampByIds, GetViewerPreference, HideStampById, MoveStamp, MoveStampById และเมธอดเพิ่มเติมอีก 5 เมธอด สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้จากแอปพลิเคชัน C++ ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.PDF FOSS สำหรับ C++ เมธอดเข้าถึง: DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint, DocumentWillSave.
วิธีการเข้าถึง
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
DocumentOpen | std::string | อ่าน/เขียน | รับหรือกำหนดการเปิดเอกสาร. |
DocumentClose | std::string | อ่าน/เขียน | รับหรือกำหนดการปิดเอกสาร. |
DocumentWillSave | std::string | อ่าน/เขียน | รับหรือกำหนดเอกสารที่จะบันทึก. |
DocumentSaved | std::string | อ่าน/เขียน | รับหรือกำหนดเอกสารที่บันทึกแล้ว. |
DocumentWillPrint | std::string | อ่าน/เขียน | รับหรือกำหนดเอกสารที่จะพิมพ์. |
DocumentPrinted | std::string | อ่าน/เขียน | รับหรือกำหนดเอกสารที่พิมพ์. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
PdfContentEditor() | เรียก PdfContentEditor บนอินสแตนซ์ PdfContentEditor นี้. |
AddDocumentAttachment(path: std::string, description: std::string) | เรียก AddDocumentAttachment(path, description) บนอินสแตนซ์ PdfContentEditor นี้. |
DeleteAttachments() | เรียก DeleteAttachments บนอินสแตนซ์ PdfContentEditor นี้. |
AddDocumentAdditionalAction(actionName: std::string, javaScript: std::string) | เรียก AddDocumentAdditionalAction(actionName, javaScript) บนอินสแตนซ์ PdfContentEditor นี้. |
RemoveDocumentOpenAction() | เรียก RemoveDocumentOpenAction บนอินสแตนซ์ PdfContentEditor นี้. |
ChangeViewerPreference(pageLayout: int) | เรียก ChangeViewerPreference(pageLayout) บนอินสแตนซ์ PdfContentEditor นี้. |
GetViewerPreference() → int | คืนค่าการตั้งค่าผู้ชม. |
ReplaceImage(pageNum: int, imageNum: int, fileName: std::string) | เรียก ReplaceImage(pageNum, imageNum, fileName) บนอินสแตนซ์ PdfContentEditor นี้. |
DeleteImage(pageNum: int, imageNum: std::vector<int>) | เรียก DeleteImage(pageNum, imageNum) บนอินสแตนซ์ PdfContentEditor นี้. |
DeleteImage() | |
ReplaceText(srcText: std::string, destText: std::string) → bool | ค้นหาทั้งเอกสารและแทนที่สตริงที่ตรงกัน, คืนค่า true เมื่อมีการแทนที่อย่างน้อยหนึ่งรายการ |
ReplaceText(srcText: std::string, pageNum: int, destText: std::string) → bool | เรียก ReplaceText(srcText, pageNum, destText) บนอินสแตนซ์ PdfContentEditor นี้. |
ReplaceText(srcText: std::string, destText: std::string, pageNum: int) → bool | เรียก ReplaceText(srcText, destText, pageNum) บนอินสแตนซ์ PdfContentEditor นี้. |
DeleteStamp(pageNum: int, stampId: std::vector<int>) | เรียก DeleteStamp(pageNum, stampId) บนอินสแตนซ์ PdfContentEditor นี้. |
DeleteStampByIds(stampIds: std::vector<int>) | เรียก DeleteStampByIds(stampIds) บนอินสแตนซ์ PdfContentEditor นี้. |
DeleteStampByIds(pageNum: int, stampIds: std::vector<int>) | เรียก DeleteStampByIds(pageNum, stampIds) บนอินสแตนซ์ PdfContentEditor นี้. |
DeleteStampById(pageNum: int, stampId: int) | เรียก DeleteStampById(pageNum, stampId) บนอินสแตนซ์ PdfContentEditor นี้. |
DeleteStampById(stampId: int) | เรียก DeleteStampById(stampId) บนอินสแตนซ์ PdfContentEditor นี้. |
HideStampById(pageNum: int, stampId: int) | เรียก HideStampById(pageNum, stampId) บนอินสแตนซ์ PdfContentEditor นี้. |
ShowStampById(pageNum: int, stampId: int) | เรียก ShowStampById(pageNum, stampId) บนอินสแตนซ์ PdfContentEditor นี้. |
MoveStampById(pageNum: int, stampId: int, offsetX: double, offsetY: double) | เรียก MoveStampById(pageNum, stampId, offsetX, offsetY) บนอินสแตนซ์ PdfContentEditor นี้. |
MoveStamp(pageNum: int, stampId: int, offsetX: double, offsetY: double) | เรียก MoveStamp(pageNum, stampId, offsetX, offsetY) บนอินสแตนซ์ PdfContentEditor นี้. |