PdfContentEditor

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.

วิธีการเข้าถึง

ชื่อประเภทการเข้าถึงคำอธิบาย
DocumentOpenstd::stringอ่าน/เขียนรับหรือกำหนดการเปิดเอกสาร.
DocumentClosestd::stringอ่าน/เขียนรับหรือกำหนดการปิดเอกสาร.
DocumentWillSavestd::stringอ่าน/เขียนรับหรือกำหนดเอกสารที่จะบันทึก.
DocumentSavedstd::stringอ่าน/เขียนรับหรือกำหนดเอกสารที่บันทึกแล้ว.
DocumentWillPrintstd::stringอ่าน/เขียนรับหรือกำหนดเอกสารที่จะพิมพ์.
DocumentPrintedstd::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 นี้.

ดูเพิ่มเติม

 ภาษาไทย