PDFium Delphi Component Docs

SaveAsObjectGraphPatched metode

Komponen: TPdf  ·  Unit: PDFium
Menyimpan dokumen dengan pengeditan langsung yang diterapkan ke entri bernama objek tidak langsung

Syntax

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.

Description

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

See Also

ExportObjectGraph, SaveAs, SaveAsRepaired