

PdfDocument: In-memory representation of the PDF document.PdfWriter: To pass the file name and write content to the document.

Select “Browse” and, in the search box, type itext7 and select itext7 from the searched results and install (see Figure 3).įollowing are the helpful classes and methods to generate the PDF document: Right-click the project name and select “Manage NuGet Packages…”. On the “New Project window”, select the Console App(.NET Framework) and give the project a name, as shown in Figure 1.įigure 1: Selecting the Console App(.NET Framework) Step 2: Install iText 7 Using “Manage NuGet Packages…” In Visual Studio, go to File -> New -> Project. Setting Up the Project Step 1: Create the Console App Using Visual Studio

iText is a library for creating and manipulating PDF files in. In my research, I came to know about iText. I had a requirement to generate an invoice as a PDF document for one of the projects I worked on. This article is about generating PDF documents using C#.
