Skip to content

ComPDFKit Java PDF SDK library for server-side applications enables developers to seamlessly integrate advanced PDF features, such as PDF viewing, editing, annotating, and more.

Notifications You must be signed in to change notification settings

ComPDFKit/compdfkit-pdf-sdk-java

Repository files navigation

ComPDFKit

ComPDFKit PDF SDK is a robust PDF library, which offers comprehensive functions for quickly viewing, annotating, editing, and signing PDFs. It is feature-rich and battle-tested, making PDF files process and manipulation easier and faster.

ComPDFKit seamlessly operates on Web, Windows, Android, iOS, Mac, and Server, with support for cross-platform frameworks such as React Native, Flutter, etc.

Introduction

ComPDFKit Java PDF Library allows you to quickly add PDF functions to any Java application, elevating your Java programs to ensure efficient development.

Related

Get Started

It is easy to embed ComPDFKit PDF SDK in your Java application with a few lines of Java code. Take just a few minutes and get started.

The following sections introduce the requirements, structure of the installation package, and how to make a PDF Reader/Editor in Java with ComPDFKit PDF SDK.

Requirements

ComPDFKit PDF SDK for Java requires apps to enable Java 8 language features to build.

  • Programming Environment: Java JDK 1.8 and higher.

  • Supported Platforms

    • Mac (intel & M1)
    • Linux (x86)

How to Run a Demo

ComPDFKit PDF SDK for Java provides multiple demos for developers to learn how to call the SDK on Java applications. You can find them in the "samples" folder. In this guide, we take "DocumentInfoTest" as an example to show how to run it on Java applications.

  1. Import the "samples" project on IDE.

  2. Navigate to the "JAVA" folder which is in "DocumentInfoTest" file and run the sample with. For example /samples/DocumentInfoTest/JAVA.

    ./RunTest.sh
    

    Note: This is a demo project, presenting completed ComPDFKit PDF SDK functions. The functions might be different based on the license you have purchased. Please check that the functions you choose work fine in this demo project. The output files will be in /samples/out.

How to Use ComPDFKit PDF SDK for Java in Java Applications

This section will help you to quickly get started with ComPDFKit PDF SDK to make a Java application with step-by-step instructions.

Create a New Project

Create a Java application using the IDE. Here we create a new Java project.

Add the Package of ComPDFKit PDF SDK for Java

  1. The first thing we need to do is to import ComPDFKit PDF SDK for Java. Copy "lib" to the project.

  1. Right click on the SDK and select Add as Library....

  2. Add the following code to Main.java:

    static{
        try {
           NativeKMPDFKit.initialize("your license", "your deviceId", "", Constants.LIB_DIR_NAME);
        } catch (FileNotFoundException e) {
              throw new RuntimeException(e);
        }
    }
  3. Start the main method to print out the information of your computer's system version. If the information is printed successfully, you have integrated ComPDFKit PDF SDK for Java successfully!

Apply the License

ComPDFKit PDF SDK is a commercial SDK, which requires a license to grant developer permission to release their apps. Each license is only valid for one deviceId in development mode.

Contact ComPDFKit's sales team to get a free 30-day license to test the project.

Documentation

Full documentation for ComPDFKit for Java PDF Libary can be found here.

Support

ComPDFKit has a professional R&D team that produces comprehensive technical documentation and guides to help developers. Also, you can get an immediate response when reporting your problems to our support team.

  • For detailed information, please visit our Guides page.

  • For technical assistance, please reach out to our Technical Support.

  • To get more details and an accurate quote, please contact our Sales Team.

Note

We are glad to announce that you can register a ComPDFKit API account for a free trial to process 1000 documents per month for free.

About

ComPDFKit Java PDF SDK library for server-side applications enables developers to seamlessly integrate advanced PDF features, such as PDF viewing, editing, annotating, and more.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages