IHPDFDocumentHandler Interface

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 zwraca wynik od 0 do 100, dzięki czemu mocne dowody z zbadanej zawartości mogą wyprzedzać słabe wskazówki z rozszerzenia lub MIME

Open musi respektować przekazane opcje, zachowywać własność strumienia źródłowego po stronie wywołującego i publikować niezmienny handled document dopiero po udanej konwersji

THPDFDocumentHandlerRegistry Class