This contains sample applications demonstrating how to use the opendataloader-pdf-core library. These examples are designed for beginners to get started easily.
- Java 11 or higher must be installed and available in your system's PATH.
- Maven or Gradle must be installed, depending on which example you choose to run.
-
Navigate to the directory: Open a terminal or command prompt and navigate to the
maven-exampledirectory.cd maven-example -
Build and Run the Application: Run the following Maven command. This command will download dependencies, compile the code, and execute the application in one step.
mvn clean install exec:java
-
Verify the Output: After the command finishes, you will see success messages in your console. The output files (JSON, Markdown, and an annotated PDF) will be generated in the
maven-example/outdirectory.You can inspect the generated files to see the results of the PDF processing.
-
Navigate to the directory: Open a terminal or command prompt and navigate to the
gradle-groovy-exampledirectory:cd gradle-groovy-example -
Build and Run the Application: Run the application using the Gradle Wrapper. This single command will download dependencies, compile the code, and execute the main method.
On Linux/macOS:
./gradlew run
On Windows:
gradlew.bat run
-
Verify the Output: After the command finishes, you will see success messages in your console. The output files (JSON, Markdown, and an annotated PDF) will be generated in the
gradle-groovy-example/outdirectory.
-
Navigate to the directory: Open a terminal or command prompt and navigate to the
gradle-kotlin-exampledirectory:cd gradle-kotlin-example -
Build and Run the Application: Run the application using the Gradle Wrapper. This single command will download dependencies, compile the code, and execute the main method.
On Linux/macOS:
./gradlew run
On Windows:
gradlew.bat run
-
Verify the Output: After the command finishes, you will see success messages in your console. The output files (JSON, Markdown, and an annotated PDF) will be generated in the
gradle-kotlin-example/outdirectory.