PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
If you are interested in all the functions mentioned in the overview section, please read our guide carefully to quickly add PDF generation functionality to your project. The following sections list some examples showing how to use our C# API to use PDF generation functions in .NET projects. If you follow our provided guides and examples, you will be able to quickly integrate PDF generation functionality into your .NET project using our C# API.
Using the ComPDF Generation .NET Core library, you can achieve fast and bulk PDF generation in your application. We provide different methods for PDF generation, and you can choose the one that best fits your business scenario.
Generating PDF from HTML templates: Simply create an HTML template once, and then use JSON data to populate the template for bulk generation of different PDFs while retaining the original page layout. This method supports inserting text, images, and dynamic tables, making it ideal for generating complex and elegant PDFs, such as reports, invoices, letters, and contracts.
Converting HTML to PDF: Standard HTML files or HTML strings can be converted into PDF files, suitable for quickly converting existing HTML content to PDF documents.
Generating PDF through Layout API: Directly create and control every element of PDF documents through code, providing the finest level of control. This method allows you to completely build PDF documents from scratch programmatically, making it ideal for scenarios that require precise control of document layout, dynamic generation of complex structured documents, or deep integration with existing code logic. The Layout API supports a rich set of element types (text, paragraphs, tables, lists, images, etc.) and provides a complete style system and flexible layout control.
Main Capabilities of HTML PDF Generation:
Main Capabilities of Layout API PDF Generation:
Start your experience now!