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;

L'enregistrement, le remplacement, la suppression, les instantanés et la recherche sont thread-safe, avec au plus 32 gestionnaires et un emplacement insensible à la casse par nom de gestionnaire

La reconnaissance s'exécute hors du verrou du registre sur un instantané d'interface stable, et les scores égaux conservent l'ordre d'enregistrement

RegisterStandardHandlers active la prise en charge de XPS, EPUB et CBZ sans modifier les API de chargement spécifiques au PDF

Optional Document Handlers