Skip to content
Sample code for Datalogics PDF Java Toolkit.
Java Other
  1. Java 99.3%
  2. Other 0.7%
Branch: develop
Clone or download
datalogics-coreyy Merge pull request #126 from datalogics-kam/pdfjt-1233-text-extraction
PDFJT-1233 Fix up problems with text extraction
Latest commit c59ce0d Jan 29, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Remove version/release notes items Apr 1, 2016
.idea IDEA: Make unchecked warning and foreach checks weak warnings Jun 14, 2017
.mvn/wrapper IDEA: Ignore unused properties in Maven wrapper Apr 6, 2017
.settings Allow formatting to be turned off with comment tags. Jun 13, 2017
lite lite POM: Add log4j2 configuration files. Oct 9, 2017
src New baseline for testExtractTextReadingOrder Jan 29, 2019
.gitattributes Add Maven wrapper Oct 11, 2016
.gitignore Don't include .iml files from IntelliJ Oct 3, 2017 Add instructions for installing plugins via eclipse-plugins-neon.p2f Dec 12, 2016 Coding guidelines: Add guidelines for final variables Jun 15, 2017 Add Dec 29, 2015
eclipse-plugins-neon.p2f Use working url for PMD plug-in Mar 28, 2017
fix_throws_javadoc.sed FillForm: Move main body of work into FormImporter. Apr 6, 2017 fix_throws_javadoc: Fix up search directories. Jan 14, 2016
mvnw Add Maven wrapper Oct 11, 2016
mvnw.cmd Add Maven wrapper Oct 11, 2016
pom.xml Update to animal-sniffer-maven-plugin 1.16 Oct 9, 2017

Datalogics PDF Java Toolkit Sample repository

This repository contains samples for use with Datalogics PDF Java Toolkit.

Please note that even though the samples are MIT licensed, you still require a license from Datalogics for PDF Java Toolkit in order to run these samples. Please sign up for an evaluation here or contact us to learn more before evaluating Datalogics PDF Java Toolkit.


  • Java SE 1.7

Using with an evaluation version of PDFJT

The evaluation version of PDF Java Toolkit has license management, and a different artifact name: pdfjt-lm. There's also a corresponding talkeetna-lm which similarly depends on pdfjt-lm. Switching to use these versions of PDF Java Toolkit and Talkeetna is provided with Maven profiles.

License file

Evaluation copies will come with a license file, with a name ending in .l4j.

Move the license file to the top-level directory of the samples, so that it is in the current directory when running samples.

To use license-managed PDFJT, create a file called .use-pdfjt-lm in the top directory of this project. This will activate profiles automatically for Maven and Eclipse.

If this project was received as part of an evaluation, then the .use-pdfjt-lm file is already created.

Building and running from the command line

This project includes maven-wrapper, which fully encapsulates the build system required for PDF Java Toolkit. Your system only requires a Java installation to build and run the samples.

  • To build with Maven, run ./mvnw verify in the 'samples' folder (.\mvnw verify on Windows).
    • This will create a target folder with a set of build artifacts, including the pdf-java-toolkit-samples-lite-0.0.1-SNAPSHOT.jar file containing all the samples.
  • To run a sample, specify the JAR file and the fully qualified name of the sample to run. For example, to run the HelloWorld sample:
    • java -cp target/pdf-java-toolkit-samples-lite-0.0.1-SNAPSHOT.jar com.datalogics.pdf.samples.creation.HelloWorld

Tested IDEs

The samples were developed and tested using Neon 4.6.2

Using remote input PDF files with the samples

By default, the samples run with pre-packaged input PDF files that are treated as resources of the samples. However, you can use your own input PDF files including those that are stored remotely on a shared network with the samples. As long as the shared network where the PDF files reside is mounted on your local machine it's treated a part of your local file system.

For more information on working with files in java please see file path java tutorial.

Talkeetna 5 support

Support for Talkeetna 5 has been dropped from the develop branch. For legacy Talkeetna 5 support, see the develop-talkeetna-5 branch.



You can’t perform that action at this time.