using Nop.Core.Domain.Localization; using QuestPDF.Helpers; namespace Nop.Services.Common.Pdf; /// /// Represents the data source for an underlying PDF document /// public partial class DocumentSource { /// /// Gets or sets the language context /// public required Language Language { get; set; } /// /// Gets or sets the page size /// public required PageSize PageSize { get; set; } /// /// Gets or sets a value indicating that the text direction is from right to left /// public bool IsRightToLeft => Language.Rtl; /// /// Gets or sets the font name. Loaded from the ~/App_Data/Pdf directory during application start. The default font is Lato (embedded). /// public string FontFamily { get; set; } = Fonts.Lato; }