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;

O registo, a substituição, a remoção, os snapshots e a pesquisa são thread-safe, com no máximo 32 handlers e um slot por handler, sem distinguir maiúsculas de minúsculas no nome

O reconhecimento corre fora do lock do registo, sobre um snapshot estável da interface, e as pontuações iguais mantêm a ordem de registo

RegisterStandardHandlers opts into XPS, EPUB, and CBZ support without changing PDF-specific loading APIs

Manipuladores de documentos opcionais