IHPDFDocumentHandler interfejs
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 vraća rezultat od 0 do 100, omogućavajući snažnim dokazima iz pregledanog sadržaja da nadjačaju slabe naznake ekstenzije ili MIME tipa
Open mora da poštuje dostavljene opcije, zadrži vlasništvo pozivaoca nad izvornim tokom podataka i objavi nepromenljiv obrađeni dokument tek nakon uspešne konverzije