using QuestPDF.Infrastructure;

namespace SportsDivision.Web.Reports;

/// <summary>
/// Initializes QuestPDF community license for the entire application.
/// This static constructor runs once when the type is first accessed.
/// </summary>
public static class QuestPdfLicenseInitializer
{
    static QuestPdfLicenseInitializer()
    {
        QuestPDF.Settings.License = LicenseType.Community;
    }

    /// <summary>
    /// Call this method at application startup to ensure the static constructor runs.
    /// </summary>
    public static void EnsureInitialized() { }
}
