PDFium Delphi Component Docs

SaveAsObjectGraphPatched 메서드

컴포넌트: TPdf  ·  유닛: PDFium
간접 객체의 명명된 항목에 직접 편집을 적용하여 문서를 저장합니다

Syntax

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

StreamTStream. 대상 스트림입니다
OperationsTPdfObjectPatchOperations. 연산 배열이며, 각 연산은 Kind(popSet 또는 popRemove), 대상 ObjectNumberGeneration, 사전 Key를 지정하고 popSet의 경우 자체 Kind가 null, boolean, integer, real, name, 텍스트 문자열, 참조 중 하나를 선택하는 Value를 지정합니다
ReportTPdfObjectGraphReport. PatchedObjectCount, AppliedOperationCount, 바이트 수, Succeeded, ErrorMessage를 전달받습니다
AllowSignedDocumentBoolean. 서명된 문서의 다시 쓰기를 허용합니다. 기본값은 False입니다
ResultBoolean. 패치된 문서가 기록되면 True입니다

 

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

FileNamestring. 대상 파일이며, 같은 디렉터리의 임시 파일을 거쳐 원자적으로 기록됩니다
OperationsTPdfObjectPatchOperations. 스트림 오버로드와 동일한 연산 목록입니다
ReportTPdfObjectGraphReport. 동일한 보고서 레코드입니다
AllowSignedDocumentBoolean. 서명된 문서의 다시 쓰기를 허용합니다
ResultBoolean. 파일이 기록되면 True입니다

Description

형식화된 API가 노출하지 않는 항목, 즉 카탈로그 사전의 비공개 키, PDFium이 모델링하지 않는 뷰어 기본 설정, 손상된 파일의 수정할 항목에 접근합니다. 객체와 키를 직접 이름 지정하는 방식입니다

Operations의 길이에 대한 AppliedOperationCount는 모든 편집이 대상을 찾았는지 보여 줍니다. 존재하지 않는 객체를 지정한 연산은 조용히 무시되는 대신 보고됩니다

서명된 문서를 다시 쓰면 서명이 무효화되므로, 호출자가 명시적으로 허용하지 않는 한 거부됩니다. 패치할 객체 번호를 찾으려면 먼저 ExportObjectGraph를 사용하십시오

See Also

ExportObjectGraph, SaveAs, SaveAsRepaired