We are glad to announce that the Syncfusion PDF Library has been extended to support compressing PDF documents in the ASP.NET Core platform from version 18.2.0.44 (Essential Studio 2020 Volume 2 release) onwards.

In this blog, I am going to create an ASP.NET Core web application to compress PDF documents and run the application in Linux Docker. The following topics will be covered:

Let’s get started!

Create an ASP.NET Core web application

Follow these steps to create an ASP.NET Core web application in Visual Studio 2019:

  1. In Visual Studio 2019, go to File > New and then select Project.
  2. Select Create a new project.
  3. Select the ASP.NET Core Web Application template.
  4. Enter the Project name and then click Create. The Project template dialog will be displayed.
  5. Select the Enable Docker Support check box and select Linux in the drop-down list and click Create.

Refer to the following screenshot.

Note: Install Docker for Windows to deploy applications in a Linux Docker container.

Install necessary NuGet packages to compress PDF documents

After creating the ASP.NET Core web application, follow these steps to install the Syncfusion.Pdf.Imaging.Net.Core NuGet package in the project:

  1. Right-click on the project and select Manage NuGet Packages.
  2. Search for the Syncfusion.Pdf.Imaging.Net.Core package and then install it.

#pdf #syncfusion #web #linux

Easily Publish an ASP.NET Core App that Compresses PDF Documents
3.85 GEEK