Interface IHPDFDocumentHandler
IHPDFDocumentHandler = interface(IInterface)
function GetHandlerName: string;
function GetFormat: THPDFHandledDocumentFormat;
function GetExtensions: string;
function GetMIMETypes: string;
function Recognize(const Probe: THPDFDocumentProbe): Integer;
function Open(Source: TStream; const Probe: THPDFDocumentProbe;
const Options: THPDFDocumentHandlerOptions;
out Document: IHPDFHandledDocument;
out Info: THPDFDocumentHandlerInfo): boolean;
end;
Recognize retourne un score de 0 à 100, permettant à une forte preuve de contenu inspecté de surpasser de faibles indices d'extension ou de type MIME
Open doit respecter les options fournies, préserver la propriété du flux source par l'appelant et publier un document géré immuable uniquement après une conversion réussie