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 instance. |
ShowStampById(pageNum: int, stampId: int) | يستدعي ShowStampById(pageNum, stampId) على هذا الكائن من PdfContentEditor instance. |
MoveStampById(pageNum: int, stampId: int, offsetX: double, offsetY: double) | يستدعي MoveStampById(pageNum, stampId, offsetX, offsetY) على هذا الكائن من PdfContentEditor instance. |
MoveStamp(pageNum: int, stampId: int, offsetX: double, offsetY: double) | يستدعي MoveStamp(pageNum, stampId, offsetX, offsetY) على هذا الكائن من PdfContentEditor instance. |