Interface 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 retorna uma pontuação de 0 a 100, permitindo que evidências fortes de conteúdo inspecionado superem dicas fracas de extensão ou MIME
Open deve respeitar as opções fornecidas, preservar a propriedade do chamador sobre o fluxo de origem e publicar um documento tratado imutável apenas após conversão bem-sucedida