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. |
Menjangkau entri yang tidak diekspos API bertipe apa pun - kunci pribadi di kamus katalog, preferensi penampil yang tidak dimodelkan PDFium, entri yang dikoreksi di file rusak - dengan menamai objek dan kuncinya langsung
AppliedOperationCount terhadap panjang Operations menunjukkan apakah setiap pengeditan menemukan targetnya; operasi yang menamai objek yang tidak ada dilaporkan alih-alih diabaikan diam-diam
Menulis ulang dokumen yang ditandatangani membatalkan tanda tangannya, jadi kasus itu ditolak kecuali pemanggil ikut. Gunakan ExportObjectGraph terlebih dahulu untuk menemukan nomor objek yang akan dipatch