refactor(ISignature): create to handle common properties of a signature

- implement to entity and dto
This commit is contained in:
2025-09-25 16:14:59 +02:00
parent 94ce416aa1
commit bf0bd8e9e7
4 changed files with 27 additions and 8 deletions

View File

@@ -226,12 +226,18 @@ public class EnvelopeController : ViewControllerBase
{
using var pdf = Pdf.FromMemory(doc.ByteData).Design(1, canvas =>
{
canvas.SetStrokeColor(ColorConstants.RED);
canvas.SetFillColor(ColorConstants.CYAN);
canvas.SetFillColorRgb(222, 220, 215);
canvas.SetLineWidth(2);
canvas.SetFillColor(new DeviceRgb(135, 62, 35));
canvas.Rectangle(100, 500, 200, 100);
canvas.Fill();
canvas.SetFillColor(new DeviceRgb(222, 220, 215));
canvas.SetStrokeColor(new DeviceRgb(135, 62, 35));
canvas.Circle(300, 500, 100);
canvas.FillStroke();
canvas.Fill();
});
doc.ByteData = pdf.ExportAsBytes();