---
title: "Integrate Nutrient Java SDK into any Java application"
canonical_url: "https://www.nutrient.io/sdk/java/getting-started/"
md_url: "https://www.nutrient.io/sdk/java/getting-started.md"
last_updated: "2026-05-15T19:10:05.144Z"
description: "Integrate Nutrient Java SDK for powerful document editing and conversion (PDF, Word, Excel, Powerpoint, Markdown, HTML) using Gradle or Maven."
---

# 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](https://central.sonatype.com/artifact/io.nutrient/nutrient-java-sdk) repository, where you can find snippets for most popular build systems, along with the Gradle and Maven examples included in this guide.

### Gradle

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

  ```

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

### Maven

- In the depending module’s `pom.xml` file, add the Nutrient dependency:

  ```

  <dependency>
    <groupId>io.nutrient</groupId>
    <artifactId>nutrient-java-sdk</artifactId>
    <version>2.1.4</version>
  </dependency>
  ```

## Using Nutrient Java SDK

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

### Java

```java

import io.nutrient.sdk.Document;

```

### Kotlin

```kotlin

import io.nutrient.sdk.Document

```

Next, load a document:

### Java

```java

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

```

### Kotlin

```kotlin

Document.open("path/to/document.pdf").use { document ->
    // actions on this document
}

```

Once you have a document loaded, you can start using the rest of the library. Refer to the [API documentation](https://www.nutrient.io/api/java-sdk/) and [guides](https://www.nutrient.io/guides/java.md) 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:

- [Word document to PDF](https://www.nutrient.io/guides/java/conversion/word-document-to-pdf.md)

- [PDF document to Word](https://www.nutrient.io/guides/java/conversion/pdf-to-word-document.md)

- [Word template generation](https://www.nutrient.io/guides/java/templates/word-template-generation.md)

- [Editing PDF metadata](https://www.nutrient.io/guides/java/editor/editing-pdf-metadata.md)