PdfContentEditor

PdfContentEditor

概要

PdfContentEditor は Aspose.PDF の C++ 用 FOSS のクラスです。

PdfContentEditor.ReplaceText(srcText, destText) はドキュメント全体を検索し、一致する文字列を置換します。置換が少なくとも 1 回行われた場合に true を返します。

このクラスは C++ プログラムで PdfContentEditor オブジェクトを操作するための 22 のメソッドを提供します。利用可能なメソッドは AddDocumentAdditionalAction、AddDocumentAttachment、ChangeViewerPreference、DeleteAttachments、DeleteImage、DeleteStamp、DeleteStampById、DeleteStampByIds、GetViewerPreference、HideStampById、MoveStamp、MoveStampById、および追加の 5 メソッドです。すべてのパブリックメンバーは、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文書全体を検索し、一致する文字列を置換します。置換が1回以上行われた場合は 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) を呼び出します。

参照

 日本語