PdfContentEditor

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řístupPopis:
DocumentOpenstd::stringČtení/zápisZíská nebo nastaví otevření dokumentu.
DocumentClosestd::stringČtení/zápisZíská nebo nastaví uzavření dokumentu.
DocumentWillSavestd::stringČtení/zápisZíská nebo nastaví dokument, který bude uložen.
DocumentSavedstd::stringČtení/zápisZíská nebo nastaví uložený dokument.
DocumentWillPrintstd::stringČtení/zápisZíská nebo nastaví, zda se dokument bude tisknout.
DocumentPrintedstd::stringČtení/zápisZí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() → intVrací 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) → boolProhledá 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) → boolVolá ReplaceText(srcText, pageNum, destText) na této instanci PdfContentEditor.
ReplaceText(srcText: std::string, destText: std::string, pageNum: int) → boolVolá 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.

Viz také:

 Čeština