PDFium Delphi Component Docs

ValidatePagePlan メソッド

コンポーネント: TPdf  ·  ユニット: PDFium

構文

function ValidatePagePlan(const Plan: TPdfPagePlan; ImportedSource: TPdf = nil; AllowSignedDocument: Boolean = False): TPdfPagePlanValidationReport;

説明

削除、移動、挿入、分割、統合のプランを、対象文書とソース文書を変更せずに、正確な 1 起点の旧ページから新ページへのマップへコンパイルします

0 起点のページインデックスからプランを組み立てるには、TPdfPagePlan.DeletePages、MovePages、InsertPages、InsertSourcePages を使用します。プランは Operation、PageIndices、DestinationIndex、InsertedPageCount を保持します

結果

NewPageNumbers には、すべての元のページに対する新しい 1 起点のページ番号が格納され、削除されたページは 0 になります

レポートは Valid、Decision、ErrorMessage、Operation、OriginalPageCount、ResultPageCount、DeletedPageCount、MovedPageCount、InsertedPageCount、FirstChangedPageNumber、Impacts を公開します

ブックマーク (BookmarkCount、AffectedBookmarkCount、DanglingBookmarkCount)、名前付き宛先 (NamedDestinationCount、AffectedNamedDestinationCount、DanglingNamedDestinationCount)、ページラベル (PageLabelCount、AffectedPageLabelCount)、フォームフィールド (FormFieldCount、AffectedFormFieldCount)、タグ付きページ (TaggedPageCount、AffectedTaggedPageCount) を数え、さらに読み込み機能のカウンタ ImportedBookmarkCount、ImportedNamedDestinationCount、ImportedPageLabelCount、ImportedFormFieldCount、ImportedTaggedPageCount、ImportedSignatureCount、ImportedFeaturesUnknown を報告し、ppdAllow、ppdReview、ppdReject のいずれかを返します

安全性

インデックスが不正な場合、ナビゲーション先がぶら下がり (dangling) になる場合、AllowSignedDocument なしで署名済みコンテンツが変更される場合には、プランは拒否されます

アクティブなソース在庫なしの挿入には ppiImportedFeaturesUnknown の印が付けられ、レビューが必要になります

関連項目

MovePages, ImportPagesByIndex, MergeFiles