function SaveAsObjectGraphPatched(Stream: TStream; const Operations: TPdfObjectPatchOperations; out Report: TPdfObjectGraphReport; AllowSignedDocument: Boolean = False): Boolean;
| Stream | TStream. Destination stream. |
| Operations | TPdfObjectPatchOperations. 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. |
| Report | TPdfObjectGraphReport. Receives PatchedObjectCount, AppliedOperationCount, byte counts, Succeeded, and ErrorMessage. |
| AllowSignedDocument | Boolean. Permit rewriting a signed document. Defaults to False. |
| Result | Boolean. True when the patched document was written. |
function SaveAsObjectGraphPatched(const FileName: string; const Operations: TPdfObjectPatchOperations; out Report: TPdfObjectGraphReport; AllowSignedDocument: Boolean = False): Boolean;
| FileName | string. Destination file, written atomically through a temporary file in the same directory. |
| Operations | TPdfObjectPatchOperations. Same operation list as the stream overload. |
| Report | TPdfObjectGraphReport. Same report record. |
| AllowSignedDocument | Boolean. Permit rewriting a signed document. |
| Result | Boolean. True when the file was written. |
型付き API が公開しないエントリ(カタログ辞書のプライベートキー、PDFium がモデル化しないビューア設定、損傷ファイルの修正エントリ)に、オブジェクトとキーを直接指定して到達します
AppliedOperationCount と Operations の長さの比較が、すべての編集が対象を見つけたかを示します。存在しないオブジェクトを指す操作は、黙って無視されず報告されます
署名付きドキュメントの書き換えは署名を無効化するため、呼び出し側が明示的に選択しない限りそのケースは拒否されます。パッチするオブジェクト番号を見つけるには ExportObjectGraph を先に使用します