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

ראה גם

 עברית