PdfContentEditor

PdfContentEditor

Przegląd

PdfContentEditor jest klasą w Aspose.PDF FOSS dla C++.

PdfContentEditor.ReplaceText(srcText, destText) przeszukuje cały dokument i zastępuje pasujące ciągi znaków, zwracając true, gdy nastąpi co najmniej jedna zamiana.

Ta klasa udostępnia 22 metody do pracy z obiektami PdfContentEditor w programach C++. Dostępne metody to: AddDocumentAdditionalAction, AddDocumentAttachment, ChangeViewerPreference, DeleteAttachments, DeleteImage, DeleteStamp, DeleteStampById, DeleteStampByIds, GetViewerPreference, HideStampById, MoveStamp, MoveStampById oraz 5 dodatkowych metod. Wszystkie publiczne członki są dostępne dla każdej aplikacji C++ po zainstalowaniu pakietu Aspose.PDF FOSS dla C++. Metody dostępowe: DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint, DocumentWillSave.

Metody dostępowe

NazwaTypDostępOpis
DocumentOpenstd::stringOdczyt/zapisPobiera lub ustawia otwarcie dokumentu.
DocumentClosestd::stringOdczyt/zapisPobiera lub ustawia zamknięcie dokumentu.
DocumentWillSavestd::stringOdczyt/zapisPobiera lub ustawia dokument, który zostanie zapisany.
DocumentSavedstd::stringOdczyt/zapisPobiera lub ustawia zapisany dokument.
DocumentWillPrintstd::stringOdczyt/zapisPobiera lub ustawia dokument, który zostanie wydrukowany.
DocumentPrintedstd::stringOdczyt/zapisPobiera lub ustawia wydrukowany dokument.

Metody

SygnaturaOpis
PdfContentEditor()Wywołuje PdfContentEditor na tej instancji PdfContentEditor.
AddDocumentAttachment(path: std::string, description: std::string)Wywołuje AddDocumentAttachment(path, description) na tej instancji PdfContentEditor.
DeleteAttachments()Wywołuje DeleteAttachments na tej instancji PdfContentEditor.
AddDocumentAdditionalAction(actionName: std::string, javaScript: std::string)Wywołuje AddDocumentAdditionalAction(actionName, javaScript) na tej instancji PdfContentEditor.
RemoveDocumentOpenAction()Wywołuje RemoveDocumentOpenAction na tej instancji PdfContentEditor.
ChangeViewerPreference(pageLayout: int)Wywołuje ChangeViewerPreference(pageLayout) na tej instancji PdfContentEditor.
GetViewerPreference() → intZwraca preferencję przeglądarki.
ReplaceImage(pageNum: int, imageNum: int, fileName: std::string)Wywołuje ReplaceImage(pageNum, imageNum, fileName) na tej instancji PdfContentEditor.
DeleteImage(pageNum: int, imageNum: std::vector<int>)Wywołuje DeleteImage(pageNum, imageNum) na tej instancji PdfContentEditor.
DeleteImage()
ReplaceText(srcText: std::string, destText: std::string) → boolPrzeszukuje cały dokument i zamienia pasujące ciągi znaków, zwracając true, gdy nastąpi co najmniej jedna zamiana
ReplaceText(srcText: std::string, pageNum: int, destText: std::string) → boolWywołuje ReplaceText(srcText, pageNum, destText) na tej instancji PdfContentEditor.
ReplaceText(srcText: std::string, destText: std::string, pageNum: int) → boolWywołuje ReplaceText(srcText, destText, pageNum) na tej instancji PdfContentEditor.
DeleteStamp(pageNum: int, stampId: std::vector<int>)Wywołuje DeleteStamp(pageNum, stampId) na tej instancji PdfContentEditor.
DeleteStampByIds(stampIds: std::vector<int>)Wywołuje DeleteStampByIds(stampIds) na tej instancji PdfContentEditor.
DeleteStampByIds(pageNum: int, stampIds: std::vector<int>)Wywołuje DeleteStampByIds(pageNum, stampIds) na tej instancji PdfContentEditor.
DeleteStampById(pageNum: int, stampId: int)Wywołuje DeleteStampById(pageNum, stampId) na tej instancji PdfContentEditor.
DeleteStampById(stampId: int)Wywołuje DeleteStampById(stampId) na tej instancji PdfContentEditor.
HideStampById(pageNum: int, stampId: int)Wywołuje HideStampById(pageNum, stampId) na tej instancji PdfContentEditor.
ShowStampById(pageNum: int, stampId: int)Wywołuje ShowStampById(pageNum, stampId) na tej instancji PdfContentEditor.
MoveStampById(pageNum: int, stampId: int, offsetX: double, offsetY: double)Wywołuje MoveStampById(pageNum, stampId, offsetX, offsetY) na tej instancji PdfContentEditor.
MoveStamp(pageNum: int, stampId: int, offsetX: double, offsetY: double)Wywołuje MoveStamp(pageNum, stampId, offsetX, offsetY) na tej instancji PdfContentEditor.

Zobacz także

 Polski