THotPDF.RegisterCustomStreamFilter

Retains an application-defined decoder under its normalized PDF filter name

Declaration

function RegisterCustomStreamFilter(
  const CustomFilter: IHPDFCustomStreamFilter;
  ReplaceExisting: Boolean = False): Boolean;

Parameters

CustomFilter supplies the name, mode, seek contracts, and decoder implementation

ReplaceExisting permits an atomic replacement when the normalized name already exists

Return value

Returns True after insertion or replacement and False for a duplicate when replacement is disabled

Usage notes

Related APIs