Compare commits
5 Commits
eafcd79749
...
04b3d630fe
| Author | SHA1 | Date | |
|---|---|---|---|
| 04b3d630fe | |||
| d39a3d283d | |||
| 7cae9a5291 | |||
| 6f31d7b1d0 | |||
| 06431028cb |
@@ -6,6 +6,7 @@ using iText.Kernel.Geom;
|
|||||||
#if NETFRAMEWORK
|
#if NETFRAMEWORK
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
#endif
|
#endif
|
||||||
@@ -70,6 +71,14 @@ namespace EnvelopeGenerator.PdfEditor
|
|||||||
design(doc.GetPage(pageIndex));
|
design(doc.GetPage(pageIndex));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
public Pdf<TInputStream, TOutputStream> Page(Action<PdfPage> design)
|
||||||
|
{
|
||||||
|
for (int i = 1; i <= _doc.GetNumberOfPages(); i++)
|
||||||
|
Page(i, design);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Pdf<TInputStream, TOutputStream> Design(int pageIndex, Action<PdfCanvas> design)
|
public Pdf<TInputStream, TOutputStream> Design(int pageIndex, Action<PdfCanvas> design)
|
||||||
=> Document(doc =>
|
=> Document(doc =>
|
||||||
{
|
{
|
||||||
@@ -82,6 +91,13 @@ namespace EnvelopeGenerator.PdfEditor
|
|||||||
public Pdf<TInputStream, TOutputStream> Background<TSignature>(IEnumerable<TSignature> signatures)
|
public Pdf<TInputStream, TOutputStream> Background<TSignature>(IEnumerable<TSignature> signatures)
|
||||||
where TSignature : ISignature
|
where TSignature : ISignature
|
||||||
{
|
{
|
||||||
|
// once per page
|
||||||
|
Page(page =>
|
||||||
|
{
|
||||||
|
var canvas = new PdfCanvas(page);
|
||||||
|
canvas.ConcatMatrix(1, 0, 0, -1, 0, page.GetPageSize().GetHeight());
|
||||||
|
});
|
||||||
|
|
||||||
foreach (var signature in signatures)
|
foreach (var signature in signatures)
|
||||||
Page(signature.Page, page =>
|
Page(signature.Page, page =>
|
||||||
{
|
{
|
||||||
@@ -95,10 +111,6 @@ namespace EnvelopeGenerator.PdfEditor
|
|||||||
|
|
||||||
double bottomLineLength = 2.5;
|
double bottomLineLength = 2.5;
|
||||||
|
|
||||||
Rectangle pageSize = page.GetPageSize();
|
|
||||||
|
|
||||||
canvas.ConcatMatrix(1, 0, 0, -1, 0, pageSize.GetHeight());
|
|
||||||
|
|
||||||
// draw background
|
// draw background
|
||||||
canvas.SetFillColor(new DeviceRgb(222, 220, 215))
|
canvas.SetFillColor(new DeviceRgb(222, 220, 215))
|
||||||
.Rectangle(x, y, width, height)
|
.Rectangle(x, y, width, height)
|
||||||
|
|||||||
@@ -12,9 +12,9 @@
|
|||||||
<PackageTags>digital data envelope generator web</PackageTags>
|
<PackageTags>digital data envelope generator web</PackageTags>
|
||||||
<Description>EnvelopeGenerator.Web is an ASP.NET MVC application developed to manage signing processes. It uses Entity Framework Core (EF Core) for database operations. The user interface for signing processes is developed with Razor View Engine (.cshtml files) and JavaScript under wwwroot, integrated with PSPDFKit. This integration allows users to view and sign documents seamlessly.</Description>
|
<Description>EnvelopeGenerator.Web is an ASP.NET MVC application developed to manage signing processes. It uses Entity Framework Core (EF Core) for database operations. The user interface for signing processes is developed with Razor View Engine (.cshtml files) and JavaScript under wwwroot, integrated with PSPDFKit. This integration allows users to view and sign documents seamlessly.</Description>
|
||||||
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
|
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
|
||||||
<Version>3.4.0</Version>
|
<Version>3.4.1</Version>
|
||||||
<AssemblyVersion>3.4.0</AssemblyVersion>
|
<AssemblyVersion>3.4.1</AssemblyVersion>
|
||||||
<FileVersion>3.4.0</FileVersion>
|
<FileVersion>3.4.1</FileVersion>
|
||||||
<Copyright>Copyright © 2025 Digital Data GmbH. All rights reserved.</Copyright>
|
<Copyright>Copyright © 2025 Digital Data GmbH. All rights reserved.</Copyright>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ try
|
|||||||
Directory
|
Directory
|
||||||
.GetFiles(builder.Environment.ContentRootPath, "appsettings.*.json", SearchOption.TopDirectoryOnly)
|
.GetFiles(builder.Environment.ContentRootPath, "appsettings.*.json", SearchOption.TopDirectoryOnly)
|
||||||
.Where(file => Path.GetFileName(file) != $"appsettings.Development.json")
|
.Where(file => Path.GetFileName(file) != $"appsettings.Development.json")
|
||||||
|
.Where(file => Path.GetFileName(file) != $"appsettings.migration.json")
|
||||||
.ToList()
|
.ToList()
|
||||||
.ForEach(file => config.AddJsonFile(file, true, true));
|
.ForEach(file => config.AddJsonFile(file, true, true));
|
||||||
|
|
||||||
|
|||||||
@@ -96,6 +96,8 @@
|
|||||||
</details>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
@if (smsExpiration is not null)
|
||||||
|
{
|
||||||
<script nonce="@nonce">
|
<script nonce="@nonce">
|
||||||
var expiration = new Date(@Html.Raw(JsonConvert.SerializeObject(smsExpiration)));
|
var expiration = new Date(@Html.Raw(JsonConvert.SerializeObject(smsExpiration)));
|
||||||
|
|
||||||
@@ -122,3 +124,4 @@
|
|||||||
element.textContent = remainingTime;
|
element.textContent = remainingTime;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
</script>
|
</script>
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user