fix(pdf): Replace XFontStyleEx with XFontStyle enum
All checks were successful
continuous-integration/drone/push Build is passing

- Update font style parameter from XFontStyleEx.Regular to XFontStyle.Regular
- Resolve API compatibility issue in PdfGenerationService
- Ensure correct enum type usage for PDF font styling
This commit is contained in:
zpc 2026-03-31 16:20:56 +08:00
parent 307eb3f0a0
commit 20575e5ef5

View File

@ -410,7 +410,7 @@ public class PdfGenerationService : IPdfGenerationService
{
using var document = new PdfDocument();
var totalPages = images.Count;
var font = new XFont("Arial", 10, XFontStyleEx.Regular);
var font = new XFont("Arial", 10, XFontStyle.Regular);
var brush = new XSolidBrush(XColor.FromArgb(153, 153, 153)); // #999999
for (var i = 0; i < totalPages; i++)