Skip to content

LicenseHelper

LicenseHelper is a single-method static utility that registers the embedded Syncfusion license key with the Syncfusion runtime. It must run once per process, before any converter, extractor, or merge operation in this library invokes the Syncfusion SDK; the consuming PdfAPI application calls it at Application_Start.

Purpose

  • Register the embedded Syncfusion license key with the Syncfusion runtime once per process, before any Syncfusion-backed operation in this library executes (BR-SFC-039). Whether registration lets those operations run without a trial watermark or license exception could not be confirmed from source, since the embedded key is annotated for Syncfusion 17.4 while the project builds against 18.3.**

Context

  • Namespace: PdfAPI.SyncFusionCore
  • Assembly/package: PdfAPI.SyncFusionCore (Pdf.Local.Client NuGet package)

Public members

Member Signature Purpose
LicenseSyncfusion static void LicenseSyncfusion() Executes Register the Syncfusion runtime license (OP-SFC-015): passes a hard-coded license key string embedded in source to Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense.

Behavioral notes

  • The embedded key is commented as licensed for Syncfusion version 17.4, while the project currently builds against Syncfusion 18.3; whether the key remains valid — and the runtime behavior if it does not — could not be confirmed from source.**
  • This method has no return value and performs no validation of its own; it relies entirely on the Syncfusion SDK's RegisterLicense call.

Constraints and usage notes

  • Callers must invoke this method once before performing any conversion, extraction, merge, or form-flattening operation in this library, since none of those operations call it themselves.

Note: Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • PdfApi.SyncFusionCore\LicenseHelper.cs