opendataloader-project / opendataloader-pdf-examples

Repository from Github https://github.comopendataloader-project/opendataloader-pdf-examplesRepository from Github https://github.comopendataloader-project/opendataloader-pdf-examples

OpenDataLoader PDF - Java Sample Applications

This contains sample applications demonstrating how to use the opendataloader-pdf-core library. These examples are designed for beginners to get started easily.

Prerequisites

  • 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.

1. Maven Example

Instructions

  1. Navigate to the directory: Open a terminal or command prompt and navigate to the maven-example directory.

    cd maven-example
  2. 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
  3. 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/out directory.

    You can inspect the generated files to see the results of the PDF processing.


2. Gradle (Groovy DSL) Example

Instructions

  1. Navigate to the directory: Open a terminal or command prompt and navigate to the gradle-groovy-example directory:

    cd gradle-groovy-example
  2. 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
  3. 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/out directory.


3. Gradle (Kotlin DSL) Example

Instructions

  1. Navigate to the directory: Open a terminal or command prompt and navigate to the gradle-kotlin-example directory:

    cd gradle-kotlin-example
  2. 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
  3. 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/out directory.

About

License:MIT License


Languages

Language:Java 77.7%Language:Kotlin 22.3%