PdfContentEditor

PdfContentEditor

개요

PdfContentEditor는 Aspose.PDF C++용 FOSS에 포함된 클래스입니다.

PdfContentEditor.ReplaceText(srcText, destText)는 전체 문서를 검색하고 일치하는 문자열을 교체하며, 최소 하나의 교체가 발생하면 true를 반환합니다.

이 클래스는 C++ 프로그램에서 PdfContentEditor 객체를 다루기 위한 22개의 메서드를 제공합니다. 사용 가능한 메서드에는: AddDocumentAdditionalAction, AddDocumentAttachment, ChangeViewerPreference, DeleteAttachments, DeleteImage, DeleteStamp, DeleteStampById, DeleteStampByIds, GetViewerPreference, HideStampById, MoveStamp, MoveStampById, 그리고 추가 메서드 5개가 포함됩니다. 모든 public 멤버는 Aspose.PDF C++용 FOSS 패키지를 설치한 후 어느 C++ 애플리케이션에서도 접근할 수 있습니다. 접근자 메서드: DocumentClose, DocumentOpen, DocumentPrinted, DocumentSaved, DocumentWillPrint, DocumentWillSave.

접근자 메서드

이름유형액세스설명
DocumentOpenstd::string읽기/쓰기문서 열기를 가져오거나 설정합니다.
DocumentClosestd::string읽기/쓰기문서 닫기를 가져오거나 설정합니다.
DocumentWillSavestd::string읽기/쓰기문서를 저장할지 여부를 가져오거나 설정합니다.
DocumentSavedstd::string읽기/쓰기저장된 문서를 가져오거나 설정합니다.
DocumentWillPrintstd::string읽기/쓰기문서가 인쇄될지 여부를 가져오거나 설정합니다.
DocumentPrintedstd::string읽기/쓰기인쇄된 문서를 가져오거나 설정합니다.

메서드

시그니처설명
PdfContentEditor()이 PdfContentEditor 인스턴스에서 PdfContentEditor를 호출합니다.
AddDocumentAttachment(path: std::string, description: std::string)이 PdfContentEditor 인스턴스에서 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)를 호출합니다.

참조

 한국어