Integrate our OCR SDK into a Java application
This guide discusses the extra packages required to run OCR with the Nutrient Java SDK and helps you integrate the dependencies into your project. For information on the functionality of OCR, refer to our OCR overview guide. If you want to know how to use the OCR classes, refer to our OCR usage guide.
Supplementary package requirement
The implementation and all supporting files needed to run OCR with the Nutrient Java SDK are located in a package separate to the main libraries-java
package. Therefore, if you require the OCR functionality, an additional package dependency is required.
Using the Nutrient Maven repository
If you have already integrated the Nutrient Java SDK into your project via the Nutrient Maven repository, all that is required is to add an extra dependency:
dependencies { ... implementation 'com.pspdfkit:libraries-java-ocr:1.6.1' ... }
As shown above, simply add the new package dependency to your build.gradle
file.
Manually adding the package
If you can’t use the Nutrient Maven repository, it’s still possible to download all the required packages from the Nutrient Portal and integrate manually. Refer to our manually integrating the Nutrient Java SDK integration guide for instructions.