Integrate Nutrient Java SDK into any Java application

This guide helps you integrate Nutrient Java SDK, enabling you to build tools that automatically handle its download and updates for advanced document capabilities (PDF, Word, Excel, and more). By the end, you’ll be able to load a PDF document into your application using the Nutrient Java SDK API.

Nutrient Java SDK is distributed through the public Maven Central(opens in a new tab) repository, where you can find snippets for most popular build systems, along with the Gradle and Maven examples included in this guide.

  • In the depending module’s build.gradle file, add the Nutrient dependency:

    dependencies {
    implementation group: 'io.nutrient', name: 'nutrient-java-sdk', version: '2.0.1'
    }

Using Nutrient Java SDK

Now that the Nutrient library is added, you can use the SDK in your application.

import io.nutrient.sdk.Document;

Next, load a document:

try(Document document = Document.open("path/to/document.pdf")){
// actions on this document
}

Once you have a document loaded, you can start using the rest of the library. Refer to the API docs and guides for more information. Each guide includes a ready-made sample project you can download at the bottom — a great way to bootstrap your own projects.

Good starting points for exploring the SDK’s capabilities: