Edition extension points
HotPDF ships in Single, Small Business and Enterprise editions tracked by THPDFEdition (heSingle, heSmallBusiness, heEnterprise). Edition-only features live in standalone units under Lib\SmallBusiness and Lib\Enterprise and plug into THotPDF through two extension classes rather than edition-specific component builds
Extension classes
THPDFSmallBusinessExtension= class
THPDFEnterpriseExtension= class
THPDFSmallBusinessExtension forwards the public Small Business methods that standalone units in Lib\SmallBusiness provide; THPDFEnterpriseExtension receives the Enterprise-only work from Lib\Enterprise units such as HPDFEnterprise. THotPDF keeps its public signatures and forwards through the registered extension
The concrete registration classes are THPDFEnterpriseEditionExtension in HPDFEnterprise and THPDFSmallBusinessEditionExtension in HPDFSmallBusiness; each unit's initialisation constructs and registers its instance, so applications normally work with the base classes and the registration helpers below
Registration and queries
procedure HPDFRegisterSmallBusinessExtension(Ext: THPDFSmallBusinessExtension);
procedure HPDFRegisterEnterpriseExtension(Ext: THPDFEnterpriseExtension);
function HPDFSmallBusinessEditionAvailable: boolean;
function HPDFEnterpriseEditionAvailable: boolean;
function HPDFSmallBusinessExtension(const Feature: string): THPDFSmallBusinessExtension;
function HPDFEnterpriseExtension(const Feature: string): THPDFEnterpriseExtension;
procedure HPDFRequireSmallBusiness(const Feature: string);
procedure HPDFRequireEnterprise(const Feature: string);
The registry owns a registered instance and frees the previous one on re-registration; HPDFEnterprise unregisters when it is finalised so a runtime package can unload safely
The availability functions report whether an extension is registered without raising. The extension getters return the registered extension or raise the matching gate exception, and the Require procedures raise it directly, each naming the requested feature
Edition gates
EHPDFEditionRequired= class(Exception)
EHPDFSmallBusinessRequired= class(EHPDFEditionRequired)
EHPDFEnterpriseRequired= class(EHPDFEditionRequired)
EHPDFEditionRequired is the common ancestor of the edition gate exceptions; its Edition property names the lowest edition that provides the requested Feature. Calling an edition-only method with no matching extension registered raises the gate exception for that edition
Catch EHPDFEditionRequired when a user-facing feature list must degrade gracefully across editions, and check the availability functions in advance to build menus or capability reports without exceptions
Applications that enforce their own edition gates can raise EHPDFEditionRequired.CreateForEdition with a feature name and a THPDFEdition value, or use EHPDFEnterpriseRequired.CreateForFeature and EHPDFSmallBusinessRequired.CreateForFeature for the two concrete gates