https://grokonez.com/spring-framework/spring-boot/pdf-file-with-itext-springboot-restapi-extract-mysql-data-to-pdf-file

iText PDF + SpringBoot RestAPI – Extract MySQL Data to PDF File

In the tutorial, we show you how to create a SpringBoot RestAPIs application that uses Spring JPA & iText library to extract data from MySQL records to a PDF file in table format.

Related posts:

Technologies

- SpringBoot - iText 5.0.6 - MySQL

Practice

Project Structure -> spring-boot-spring-jpa-export-data-pdf-table-file-by-itext-mysql-project-structure

Create SpringBoot project

Use SpringToolSuite to create a SpringBoot project with below dependencies:
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>      
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>      
<dependency>
    <groupId>com.itextpdf</groupId>
    <artifactId>itextpdf</artifactId>
    <version>5.0.6</version>
</dependency>   
<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
</dependency>

Customer Model

Customer.java ->

More at:

https://grokonez.com/spring-framework/spring-boot/pdf-file-with-itext-springboot-restapi-extract-mysql-data-to-pdf-file

iText PDF + SpringBoot RestAPI – Extract MySQL Data to PDF File

#springboot #mysql #itext #extract

iText PDF + SpringBoot RestAPI - Extract MySQL Data to PDF File » grokonez
1.45 GEEK