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;
Registrering, udskiftning, fjernelse, snapshots og opslag er trådsikre, med højst 32 håndterere og én case-insensitive slot per håndternavn
Genkendelse kører uden for registry-låsen mod et stabilt interface-snapshot, og lige scores beholder registreringsrækkefølgen
RegisterStandardHandlers tilvælger understøttelse af XPS, EPUB og CBZ uden at ændre de PDF-specifikke indlæsnings-API'er