PdfContentEditor
Přehled
PdfContentEditor je třída v Aspose.PDF FOSS pro C++.
PdfContentEditor.ReplaceText(srcText, destText) prohledá celý dokument a nahradí odpovídající řetězce, přičemž vrátí true, pokud dojde k alespoň jedné výměně.
Tato třída poskytuje 22 metod pro práci s objekty PdfContentEditor v C++ programech. Dostupné metody zahrnují: AddDocumentAdditionalAction, AddDocumentAttachment, ChangeViewerPreference, DeleteAttachments, DeleteImage, DeleteStamp, DeleteStampById, DeleteStampByIds, GetViewerPreference, HideStampById, MoveStamp, MoveStampById a 5 dalších metod. Všechny veřejné členy jsou přístupné jakékoli C++ aplikaci po instalaci balíčku Aspose.PDF FOSS pro C++. Přístupové metody: DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint, DocumentWillSave.
Přístupové metody
| Název: | Typ: | Přístup | Popis: |
|---|---|---|---|
DocumentOpen | std::string | Čtení/zápis | Získá nebo nastaví otevření dokumentu. |
DocumentClose | std::string | Čtení/zápis | Získá nebo nastaví uzavření dokumentu. |
DocumentWillSave | std::string | Čtení/zápis | Získá nebo nastaví dokument, který bude uložen. |
DocumentSaved | std::string | Čtení/zápis | Získá nebo nastaví uložený dokument. |
DocumentWillPrint | std::string | Čtení/zápis | Získá nebo nastaví, zda se dokument bude tisknout. |
DocumentPrinted | std::string | Čtení/zápis | Získá nebo nastaví vytištěný dokument. |
Metody
| Podpis: | Popis: |
|---|---|
PdfContentEditor() | Volá PdfContentEditor na této instanci PdfContentEditor. |
AddDocumentAttachment(path: std::string, description: std::string) | Volá AddDocumentAttachment(path, description) na této instanci PdfContentEditor. |
DeleteAttachments() | Volá DeleteAttachments na tuto PdfContentEditor instanci. |
AddDocumentAdditionalAction(actionName: std::string, javaScript: std::string) | Volá AddDocumentAdditionalAction(actionName, javaScript) na tuto PdfContentEditor instanci. |
RemoveDocumentOpenAction() | Volá RemoveDocumentOpenAction na této instanci PdfContentEditor. |
ChangeViewerPreference(pageLayout: int) | Volá ChangeViewerPreference(pageLayout) na této instanci PdfContentEditor. |
GetViewerPreference() → int | Vrací preferenci prohlížeče. |
ReplaceImage(pageNum: int, imageNum: int, fileName: std::string) | Volá ReplaceImage(pageNum, imageNum, fileName) na této instanci PdfContentEditor. |
DeleteImage(pageNum: int, imageNum: std::vector<int>) | Volá DeleteImage(pageNum, imageNum) na této instanci PdfContentEditor. |
DeleteImage() | |
ReplaceText(srcText: std::string, destText: std::string) → bool | Prohledá celý dokument a nahradí odpovídající řetězce, vrátí true, pokud dojde k alespoň jedné náhradě |
ReplaceText(srcText: std::string, pageNum: int, destText: std::string) → bool | Volá ReplaceText(srcText, pageNum, destText) na této instanci PdfContentEditor. |
ReplaceText(srcText: std::string, destText: std::string, pageNum: int) → bool | Volá ReplaceText(srcText, destText, pageNum) na této instanci PdfContentEditor. |
DeleteStamp(pageNum: int, stampId: std::vector<int>) | Volá DeleteStamp(pageNum, stampId) na této instanci PdfContentEditor. |
DeleteStampByIds(stampIds: std::vector<int>) | Volá DeleteStampByIds(stampIds) na této PdfContentEditor instanci. |
DeleteStampByIds(pageNum: int, stampIds: std::vector<int>) | Volá DeleteStampByIds(pageNum, stampIds) na této PdfContentEditor instanci. |
DeleteStampById(pageNum: int, stampId: int) | Volá DeleteStampById(pageNum, stampId) na této PdfContentEditor instanci. |
DeleteStampById(stampId: int) | Volá DeleteStampById(stampId) na této PdfContentEditor instanci. |
HideStampById(pageNum: int, stampId: int) | Volá HideStampById(pageNum, stampId) na této instanci PdfContentEditor. |
ShowStampById(pageNum: int, stampId: int) | Volá ShowStampById(pageNum, stampId) na této instanci PdfContentEditor. |
MoveStampById(pageNum: int, stampId: int, offsetX: double, offsetY: double) | Volá MoveStampById(pageNum, stampId, offsetX, offsetY) na této instanci PdfContentEditor. |
MoveStamp(pageNum: int, stampId: int, offsetX: double, offsetY: double) | Volá MoveStamp(pageNum, stampId, offsetX, offsetY) na této instanci PdfContentEditor. |