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 restituisce un punteggio da 0 a 100, consentendo a un'evidenza forte sul contenuto ispezionato di superare gli hint deboli di estensione o MIME

Open deve rispettare le opzioni fornite, preservare la proprietà del chiamante dello stream di origine e pubblicare un documento gestito immutabile solo dopo una conversione riuscita

Classe THPDFDocumentHandlerRegistry