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 sólida de contenido inspeccionado supere las pistas débiles de extensión o MIME

Open debe respetar las opciones suministradas, conservar la propiedad del llamador del flujo de origen y publicar un documento gestionado inmutable solo después de una conversión correcta

Clase THPDFDocumentHandlerRegistry