IHPDFDocumentHandler Interface

IHPDFDocumentHandler = interface(IInterface)
  function GetHandlerName: string;
  function GetFormat: THPDFHandledDocumentFormat;
  function GetExtensions: string;
  function GetMIMETypes: string;
  function Recognize(const Probe: THPDFDocumentProbe): Integer;
  function Open(Source: TStream; const Probe: THPDFDocumentProbe;
    const Options: THPDFDocumentHandlerOptions;
    out Document: IHPDFHandledDocument;
    out Info: THPDFDocumentHandlerInfo): boolean;
end;

Recognize は 0 から 100 までのスコアを返します。これにより、検査されたコンテンツの強い証拠が弱い拡張子や MIME のヒントに優先できます

Open は指定されたオプションを尊重し、ソースストリームの呼び出し元所有権を保持し、成功した変換後にのみ不変な処理済みドキュメントを公開する必要があります

THPDFDocumentHandlerRegistry Class