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 returns a score from 0 through 100, allowing strong inspected-content evidence to outrank weak extension or MIME hints
Open must honor the supplied options, preserve caller ownership of the source stream, and publish an immutable handled document only after successful conversion