TPDFlibSmallBusiness

Editions

Description

TPDFlibSmallBusiness is the Small Business edition entry point. It derives from TPDFlibSBCertificate, which completes the chain of Small Business feature classes that starts at TPDFlib, and implements every Small Business method.

Code that needs Small Business behaviour must create this class (or TPDFlibEnterprise) instead of a plain TPDFlib; the same methods on TPDFlib return 0, an empty string or False and set LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED.

Syntax

Delphi

Uses PDFlibSmallBusiness;

Var
  PDF: TPDFlibSmallBusiness;
Begin
  PDF:= TPDFlibSmallBusiness.Create;
  Try
    ...
  Finally
    PDF.Free;
  End;
End;

Fields

CompareRenderedPagesWithRendered-page comparison, inherited from the Small Business comparison class
CompareDocumentVisualsWithDocument-wide visual comparison report
ValidateInvoiceBusinessRulesInvoice business-rule validation with a provider
NativeCapabilityEditionOverride that reports the edition identifier smallbusiness

Remarks

The class is declared in PDFlibSmallBusiness.pas; creating it is the only way to enable the Small Business implementations at runtime.

TPDFlibEnterprise descends from this class, so the Enterprise edition also carries every Small Business method.

See also

TPDFlibEnterprise, EditionComparison, TPDFlib, CompareRenderedPagesWith