PdfContentEditor
Genel Bakış
PdfContentEditor, C++ için Aspose.PDF FOSS içinde bir sınıftır.
PdfContentEditor.ReplaceText(srcText, destText) tüm belgeyi arar ve eşleşen dizeleri değiştirir, en az bir değişiklik gerçekleştiğinde true döndürür.
Bu sınıf, C++ programlarında PdfContentEditor nesneleriyle çalışmak için 22 yöntem sağlar. Mevcut yöntemler şunlardır: AddDocumentAdditionalAction, AddDocumentAttachment, ChangeViewerPreference, DeleteAttachments, DeleteImage, DeleteStamp, DeleteStampById, DeleteStampByIds, GetViewerPreference, HideStampById, MoveStamp, MoveStampById ve 5 ek yöntem. Tüm genel üyeler, Aspose.PDF FOSS for C++ paketini kurduktan sonra herhangi bir C++ uygulaması tarafından erişilebilir. Erişimci yöntemler: DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint, DocumentWillSave.
Aksesör Yöntemleri
| Ad | Tür | Erişim | Açıklama |
|---|---|---|---|
DocumentOpen | std::string | Okuma/Yazma | Belge açık durumunu alır veya ayarlar. |
DocumentClose | std::string | Okuma/Yazma | Belge kapanışını alır veya ayarlar. |
DocumentWillSave | std::string | Okuma/Yazma | Belge kaydedileceğini alır veya ayarlar. |
DocumentSaved | std::string | Okuma/Yazma | Kaydedilen belgeyi alır veya ayarlar. |
DocumentWillPrint | std::string | Okuma/Yazma | Belgenin yazdırılmasını alır veya ayarlar. |
DocumentPrinted | std::string | Okuma/Yazma | Yazdırılan belgeyi alır veya ayarlar. |
Yöntemler
| İmza | Açıklama |
|---|---|
PdfContentEditor() | Bu PdfContentEditor örneğinde PdfContentEditor çağırır. |
AddDocumentAttachment(path: std::string, description: std::string) | Bu PdfContentEditor örneğinde AddDocumentAttachment(path, description) çağırır. |
DeleteAttachments() | Bu PdfContentEditor örneğinde DeleteAttachments çağrılır. |
AddDocumentAdditionalAction(actionName: std::string, javaScript: std::string) | Bu PdfContentEditor örneğinde AddDocumentAdditionalAction(actionName, javaScript) çağrılır. |
RemoveDocumentOpenAction() | Bu PdfContentEditor örneğinde RemoveDocumentOpenAction çağrılır. |
ChangeViewerPreference(pageLayout: int) | Bu PdfContentEditor örneğinde ChangeViewerPreference(pageLayout) çağrılır. |
GetViewerPreference() → int | Görüntüleyici tercihini döndürür. |
ReplaceImage(pageNum: int, imageNum: int, fileName: std::string) | Bu PdfContentEditor örneğinde ReplaceImage(pageNum, imageNum, fileName) çağrılır. |
DeleteImage(pageNum: int, imageNum: std::vector<int>) | Bu PdfContentEditor örneğinde DeleteImage(pageNum, imageNum) çağrılır. |
DeleteImage() | |
ReplaceText(srcText: std::string, destText: std::string) → bool | Tüm belgeyi arar ve eşleşen dizeleri değiştirir, en az bir değişiklik gerçekleştiğinde true döndürür |
ReplaceText(srcText: std::string, pageNum: int, destText: std::string) → bool | Bu PdfContentEditor örneğinde ReplaceText(srcText, pageNum, destText) metodunu çağırır. |
ReplaceText(srcText: std::string, destText: std::string, pageNum: int) → bool | Bu PdfContentEditor örneğinde ReplaceText(srcText, destText, pageNum) metodunu çağırır. |
DeleteStamp(pageNum: int, stampId: std::vector<int>) | Bu PdfContentEditor örneğinde DeleteStamp(pageNum, stampId) metodunu çağırır. |
DeleteStampByIds(stampIds: std::vector<int>) | Bu PdfContentEditor örneğinde DeleteStampByIds(stampIds) çağrılır. |
DeleteStampByIds(pageNum: int, stampIds: std::vector<int>) | Bu PdfContentEditor örneğinde DeleteStampByIds(pageNum, stampIds) çağrılır. |
DeleteStampById(pageNum: int, stampId: int) | Bu PdfContentEditor örneğinde DeleteStampById(pageNum, stampId) çağrılır. |
DeleteStampById(stampId: int) | Bu PdfContentEditor örneğinde DeleteStampById(stampId) çağrılır. |
HideStampById(pageNum: int, stampId: int) | Bu PdfContentEditor örneğinde HideStampById(pageNum, stampId) çağırır. |
ShowStampById(pageNum: int, stampId: int) | Bu PdfContentEditor örneğinde ShowStampById(pageNum, stampId) çağırır. |
MoveStampById(pageNum: int, stampId: int, offsetX: double, offsetY: double) | Bu PdfContentEditor örneğinde MoveStampById(pageNum, stampId, offsetX, offsetY) çağırır. |
MoveStamp(pageNum: int, stampId: int, offsetX: double, offsetY: double) | Bu PdfContentEditor örneğinde MoveStamp(pageNum, stampId, offsetX, offsetY) çağırır. |