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 | מחפש את כל המסמך ומחליף מחרוזות תואמות, מחזיר אמת כאשר מתרחשת לפחות החלפה אחת |
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 זה. |