PdfContentEditor
अवलोकन
PdfContentEditor Aspose.PDF FOSS for C++ में एक क्लास है।
PdfContentEditor.ReplaceText(srcText, destText) पूरे दस्तावेज़ को खोजता है और मेल खाने वाली स्ट्रिंग्स को बदल देता है, और जब कम से कम एक प्रतिस्थापन होता है तो true लौटाता है।
यह क्लास C++ प्रोग्रामों में PdfContentEditor ऑब्जेक्ट्स के साथ काम करने के लिए 22 मेथड्स प्रदान करती है। उपलब्ध मेथड्स में शामिल हैं: AddDocumentAdditionalAction, AddDocumentAttachment, ChangeViewerPreference, DeleteAttachments, DeleteImage, DeleteStamp, DeleteStampById, DeleteStampByIds, GetViewerPreference, HideStampById, MoveStamp, MoveStampById, और 5 अतिरिक्त मेथड्स। सभी सार्वजनिक सदस्य Aspose.PDF FOSS for C++ पैकेज को इंस्टॉल करने के बाद किसी भी 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 instance पर PdfContentEditor को कॉल करता है। |
AddDocumentAttachment(path: std::string, description: std::string) | इस PdfContentEditor instance पर AddDocumentAttachment(path, description) को कॉल करता है। |
DeleteAttachments() | इस PdfContentEditor इंस्टेंस पर DeleteAttachments को कॉल करता है। |
AddDocumentAdditionalAction(actionName: std::string, javaScript: std::string) | इस PdfContentEditor इंस्टेंस पर AddDocumentAdditionalAction(actionName, javaScript) को कॉल करता है। |
RemoveDocumentOpenAction() | इस PdfContentEditor इंस्टेंस पर RemoveDocumentOpenAction को कॉल करता है। |
ChangeViewerPreference(pageLayout: int) | इस PdfContentEditor इंस्टेंस पर ChangeViewerPreference(pageLayout) को कॉल करता है। |
GetViewerPreference() → int | व्यूअर प्राथमिकता लौटाता है। |
ReplaceImage(pageNum: int, imageNum: int, fileName: std::string) | इस PdfContentEditor इंस्टेंस पर ReplaceImage(pageNum, imageNum, fileName) को कॉल करता है। |
DeleteImage(pageNum: int, imageNum: std::vector<int>) | इस PdfContentEditor इंस्टेंस पर DeleteImage(pageNum, imageNum) को कॉल करता है। |
DeleteImage() | |
ReplaceText(srcText: std::string, destText: std::string) → bool | पूरे दस्तावेज़ को खोजता है और मिलते-जुलते स्ट्रिंग्स को बदलता है, जब कम से कम एक प्रतिस्थापन होता है तो true लौटाता है |
ReplaceText(srcText: std::string, pageNum: int, destText: std::string) → bool | इस PdfContentEditor इंस्टेंस पर ReplaceText(srcText, pageNum, destText) को कॉल करता है। |
ReplaceText(srcText: std::string, destText: std::string, pageNum: int) → bool | इस PdfContentEditor इंस्टेंस पर ReplaceText(srcText, destText, pageNum) को कॉल करता है। |
DeleteStamp(pageNum: int, stampId: std::vector<int>) | इस PdfContentEditor इंस्टेंस पर DeleteStamp(pageNum, stampId) को कॉल करता है। |
DeleteStampByIds(stampIds: std::vector<int>) | इस PdfContentEditor इंस्टेंस पर DeleteStampByIds(stampIds) को कॉल करता है। |
DeleteStampByIds(pageNum: int, stampIds: std::vector<int>) | इस PdfContentEditor इंस्टेंस पर DeleteStampByIds(pageNum, stampIds) को कॉल करता है। |
DeleteStampById(pageNum: int, stampId: int) | इस PdfContentEditor इंस्टेंस पर DeleteStampById(pageNum, stampId) को कॉल करता है। |
DeleteStampById(stampId: int) | इस PdfContentEditor इंस्टेंस पर DeleteStampById(stampId) को कॉल करता है। |
HideStampById(pageNum: int, stampId: int) | इस PdfContentEditor उदाहरण पर HideStampById(pageNum, stampId) को कॉल करता है। |
ShowStampById(pageNum: int, stampId: int) | इस PdfContentEditor इंस्टेंस पर ShowStampById(pageNum, stampId) को कॉल करता है। |
MoveStampById(pageNum: int, stampId: int, offsetX: double, offsetY: double) | इस PdfContentEditor इंस्टेंस पर MoveStampById(pageNum, stampId, offsetX, offsetY) को कॉल करता है। |
MoveStamp(pageNum: int, stampId: int, offsetX: double, offsetY: double) | इस PdfContentEditor इंस्टेंस पर MoveStamp(pageNum, stampId, offsetX, offsetY) को कॉल करता है। |