Skip to content

Commit 8b200fd

Browse files
committed
923321: Checked and updated changes in redaction action in .NET 5
1 parent 20004f3 commit 8b200fd

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

ASP.NET Core/PdfViewerWebService_5.0/Controllers/PdfViewerController.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
using System.Collections.Generic;
88
using System.IO;
99
using System.Net;
10+
using System.Drawing;
11+
using Syncfusion.Pdf.Parsing;
12+
using Syncfusion.Pdf;
13+
using Syncfusion.Pdf.Graphics;
14+
using Syncfusion.Pdf.Interactive;
15+
using Syncfusion.Pdf.Redaction;
16+
using System.Linq;
1017

1118
namespace PdfViewerService2.Controllers
1219
{
@@ -318,7 +325,7 @@ public IActionResult ImportFormFields([FromBody] Dictionary<string, string> json
318325
return Content(JsonConvert.SerializeObject(pageImage));
319326
}
320327

321-
[HttpPost("Download")]
328+
[HttpPost("Redaction")]
322329
[Microsoft.AspNetCore.Cors.EnableCors("MyPolicy")]
323330
[Route("[controller]/Redaction")]
324331
public IActionResult Redaction([FromBody] Dictionary<string, string> jsonObject)

ASP.NET Core/PdfViewerWebService_5.0/PdfViewerWebService_5.0.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.0" />
11-
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core" Version="*" />
11+
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="*" />
12+
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="*" />
13+
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core" Version="*" />
14+
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="*" />
15+
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="*" />
1216
</ItemGroup>
1317

1418
</Project>

0 commit comments

Comments
 (0)