PDFium Delphi Component Docs

SaveAsObjectGraphPatched メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
間接オブジェクトの名前付きエントリに直接編集を適用してドキュメントを保存します

構文

function SaveAsObjectGraphPatched(Stream: TStream; const Operations: TPdfObjectPatchOperations; out Report: TPdfObjectGraphReport; AllowSignedDocument: Boolean = False): Boolean;

StreamTStream. Destination stream.
OperationsTPdfObjectPatchOperations. Array of operations, each naming a Kind (popSet or popRemove), the target ObjectNumber and Generation, the dictionary Key, and for popSet a Value whose own Kind selects null, boolean, integer, real, name, text string, or reference.
ReportTPdfObjectGraphReport. Receives PatchedObjectCount, AppliedOperationCount, byte counts, Succeeded, and ErrorMessage.
AllowSignedDocumentBoolean. Permit rewriting a signed document. Defaults to False.
ResultBoolean. True when the patched document was written.

 

function SaveAsObjectGraphPatched(const FileName: string; const Operations: TPdfObjectPatchOperations; out Report: TPdfObjectGraphReport; AllowSignedDocument: Boolean = False): Boolean;

FileNamestring. Destination file, written atomically through a temporary file in the same directory.
OperationsTPdfObjectPatchOperations. Same operation list as the stream overload.
ReportTPdfObjectGraphReport. Same report record.
AllowSignedDocumentBoolean. Permit rewriting a signed document.
ResultBoolean. True when the file was written.

説明

型付き API が公開しないエントリ(カタログ辞書のプライベートキー、PDFium がモデル化しないビューア設定、損傷ファイルの修正エントリ)に、オブジェクトとキーを直接指定して到達します

AppliedOperationCountOperations の長さの比較が、すべての編集が対象を見つけたかを示します。存在しないオブジェクトを指す操作は、黙って無視されず報告されます

署名付きドキュメントの書き換えは署名を無効化するため、呼び出し側が明示的に選択しない限りそのケースは拒否されます。パッチするオブジェクト番号を見つけるには ExportObjectGraph を先に使用します

関連項目

ExportObjectGraph, SaveAs, SaveAsRepaired