This project provides a REST-based API for generating PDF documents from predefined templates. It is designed to be consumed by multiple systems that require dynamic PDF generation.
- Template-based PDF generation
- REST API integration
- Scalable service architecture
- Centralized PDF rendering engine
This service is built using:
- .NET Framework 4.7.2
- ASP.NET Web API
- iText 5 for PDF generation
This project is licensed under the GNU Affero General Public License v3.0 (AGPLv3).
You may obtain a copy of the license at: https://www.gnu.org/licenses/agpl-3.0.en.html
This project uses iText 5, a PDF library licensed under the AGPLv3.
- Website: https://itextpdf.com
- License: GNU Affero General Public License v3.0
In accordance with the AGPLv3 license requirements:
Users interacting with this service over a network are entitled to receive the complete corresponding source code.
The full source code for this service is publicly available at:
👉 https://github.com/pcfcae/Pdf-generation-api
- Windows OS
- .NET Framework 4.7.2 Developer Pack
- Visual Studio 2017 or later
- IIS (optional, for hosting)
# Clone repository
git clone https://github.com/pcfcae/Pdf-generation-api
# Navigate to project folder
cd Pdf-generation-api- Open Visual Studio
- Click Open Project/Solution
- Select the
.slnfile
In Visual Studio:
- Right-click solution → Restore NuGet Packages
Or via command line:
nuget restoremsbuild Pdf-generation-api.slnOr use Visual Studio:
- Build → Build Solution
- Press F5 or click Start
- The API will run using IIS Express
-
Publish the project:
- Right-click project → Publish
-
Deploy to IIS
-
Configure Application Pool:
- .NET CLR Version: v4.0
-
Start the site
Endpoint:
POST /api/pdf/generate
Description: Generates a PDF document based on provided template and data.
Request Example:
Refer to the Testing Guide in the DOCS folder
This service uses iText 5 under the AGPLv3 license.
If you are using this service over a network, you have the right to access the complete source code under the terms of the AGPLv3.
This software is provided "as-is", without warranty of any kind.