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;

Rejestracja, zastępowanie, usuwanie, migawki i wyszukiwanie są thread-safe, z co najwyżej 32 handlerami i jednym slotem bez rozróżniania wielkości liter na nazwę handlera

Rozpoznawanie działa poza blokadą rejestru, na stabilnej migawce interfejsu, a równe wyniki zachowują kolejność rejestracji

RegisterStandardHandlers włącza obsługę XPS, EPUB i CBZ bez zmian w API ładowania specyficznych dla PDF

Opcjonalne handlery dokumentów