IHPDFDocumentHandler-grænseflade
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 returnerer en score fra 0 til 100, så stærke beviser fra inspiceret indhold kan rangere over svage filtypenavns- eller MIME-hints
Open skal overholde de leverede indstillinger, bevare kalderens ejerskab af kildestreamen og først udgive et uforanderligt behandlet dokument efter vellykket konvertering