Interfaz 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 devuelve una puntuación de 0 a 100, lo que permite que la evidencia fuerte del contenido inspeccionado supere a las pistas débiles de extensión o MIME
Open debe respetar las opciones suministradas, preservar la ownership del stream de origen por parte del llamador y publicar un documento gestionado inmutable solo después de una conversión exitosa