THPDFDocumentHandlerRegistry Class

THPDFDocumentHandlerRegistry = class
  function RegisterHandler(const Handler: IHPDFDocumentHandler;
    ReplaceExisting: boolean = false): boolean;
  function UnregisterHandler(const HandlerName: string): boolean;
  procedure Clear;
  function GetHandlerCount: Integer;
  function GetHandlerName(Index: Integer): string;
  procedure RegisterStandardHandlers(ReplaceExisting: boolean = false);
  function OpenFromStream(Source: TStream; const SourceName,
    MIMEType: string; const Options: THPDFDocumentHandlerOptions;
    out Document: IHPDFHandledDocument;
    out Info: THPDFDocumentHandlerInfo): boolean;
  function OpenFromFile(const FileName, MIMEType: string;
    const Options: THPDFDocumentHandlerOptions;
    out Document: IHPDFHandledDocument;
    out Info: THPDFDocumentHandlerInfo): boolean;
end;

登録、置換、削除、スナップショット取得、および検索はすべてスレッドセーフで、ハンドラは最大 32 個まで、ハンドラ名ごとに大文字小文字を区別しないスロットが 1 つ確保されます

認識処理はレジストリのロック外で安定したインターフェイススナップショットに対して実行され、スコアが同点の場合は登録順が保持されます

RegisterStandardHandlers は XPS、EPUB、および CBZ のサポートを追加しますが、PDF 固有の読み込み API は変更されません

オプションのドキュメントハンドラ