Introduced new models (`SignatureDto`, `SignatureCaptureDto`, `EnvelopeReceiverDto`) to support a signature-based workflow. Added services for handling API interactions (`SignatureService`, `AuthService`, `DocumentService`, `EnvelopeReceiverService`, `SignatureCacheService`). Enhanced configuration with `ApiOptions` and `PdfViewerOptions`. Integrated DevExpress features with custom data connection providers, in-memory report storage, and font loading utilities. Marked `AnnotationDto` and `AnnotationService` as `[Obsolete]` in favor of newer implementations. Added detailed documentation for coordinate systems, unit conversions, and usage scenarios.
13 lines
440 B
C#
13 lines
440 B
C#
using DevExpress.Drawing;
|
|
|
|
namespace EnvelopeGenerator.WebUI.Client.Services {
|
|
public static class FontLoader {
|
|
public async static Task LoadFonts(HttpClient httpClient, List<string> fontNames) {
|
|
foreach(var fontName in fontNames) {
|
|
var fontBytes = await httpClient.GetByteArrayAsync($"fonts/{fontName}");
|
|
DXFontRepository.Instance.AddFont(fontBytes);
|
|
}
|
|
}
|
|
}
|
|
}
|