THPDFDocumentHandlerRegistry-klasse
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;
Registratie, vervanging, verwijdering, momentopnamen en opzoeking zijn threadveilig, met maximaal 32 handlers en één hoofdletterongevoelige slot per handlernaam
Herkennen gebeurt buiten de registervergrendeling tegen een stabiele interface-momentopname, en gelijke scores behouden de registratievolgorde
RegisterStandardHandlers kiest in voor XPS-, EPUB- en CBZ-ondersteuning zonder de PDF-specifieke laad-API's te wijzigen