How to set up in Spring Boot
JPedal is a Java PDF library that allows developers to view, print, rasterize, extract content from, and edit PDF files in their own Java applications.
This tutorial shows how to set up a Spring Boot project using the JPedal jar for development.
Please note: A trial or full copy of the JPedal jar is needed.
Step 1 - Create a Spring Boot project
The easiest way to create a Spring Boot project is to use the Spring Initializr.
Alternatively, you can clone our sample project.
If you already have a Spring Boot project, skip to step 2
Step 2 - Add JPedal to the project
Add the JPedal jar to your project using Maven or Gradle.
Maven
Add the following to your pom.xml file:
<dependencies>
<dependency>
<groupId>com.idrsolutions</groupId>
<artifactId>jpedal</artifactId>
<version>{version}</version>
</dependency>
</dependencies>
Gradle
Add the following to your build.gradle file:
dependencies {
implementation "com.idrsolutions:jpedal:{version}"
}
Step 3 - Start coding
Now you can start coding with JPedal. We have lots of code examples on our support site, blog, and GitHub.
If you haven’t already, check out our example Spring Boot project
Want to add more to your project?
Check out the following tutorials for more information to see what JPedal can do for you:
- Convert PDF to an Image
- View PDF in Java
- Print PDF from Java
- Search the Text in PDF
- Extract Text from PDF
- Extract Images from PDF
- Extract Metadata from PDF
- Edit PDF Form Annotations