Sučelje 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 vraća ocjenu od 0 do 100, omogućujući snažnim dokazima pregledanog sadržaja da nadjačaju slabe naznake ekstenzije ili MIME-ja
Open mora poštivati isporučene opcije, zadržati vlasništvo pozivatelja nad izvornim tokom i objaviti nepromjenjivi rukovani dokument tek nakon uspješne konverzije