As part of the KDAN ecosystem, ComPDF SDK for Java comprehensive functions for quickly generating, viewing, annotating, editing, and signing PDFs, and more. It is feature-rich and battle-tested, making PDF files process and manipulation easier and faster.
If you find this library helpful, please consider giving us a ⭐ Star on GitHub! Have feedback or questions? Join the conversation in our Discussions.
Why ComPDF SDK for Java?
-
Easy to Integrate: Integrate PDF functionalities easily with our powerful SDK and clear documentation and guides with few lines of code.
-
Fully Customizable UI: Design a unique interface for your products with fully customizable UI source code by a high-performing SDK.
-
Comprehensive PDF Features: Supports PDF generation, viewing, annotation, page editing, content editing, conversion, OCR, redaction, signing, forms, parsing, measurement, compression, comparison, color separation, batch processing, and more.
-
Faster Time-to-Market: Comprehensive SDK libraries save your time and expenses and roll out your applications and projects.
-
High-quality Service: We provide 24/7 professional one-to-one technical support, including onsite service and remote assistance via phone and email.
- Related
- Requirements
- How to Run a Demo
- How to Use ComPDF SDK for Java in Java Applications
- Free Trial and License
- Support
- Changelog
-
Developer Guides - Java PDF Library for Server
ComPDF 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)
ComPDF 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.
-
Import the "samples" project on IDE.
-
Navigate to the "JAVA" folder which is in "DocumentInfoTest" file and run the sample with. For example
/samples/DocumentInfoTest/JAVA../RunTest.shNote: This is a demo project, presenting completed ComPDF 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.
This section will help you to quickly get started with ComPDF SDK to make a Java application with step-by-step instructions.
Create a Java application using the IDE. Here we create a new Java project.
- The first thing we need to do is to import ComPDF SDK for Java. Copy "lib" to the project.
-
Right click on the SDK and select Add as Library....
-
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); } }
-
Start the
mainmethod to print out the information of your computer's system version. If the information is printed successfully, you have integrated ComPDF SDK for Java successfully!
ComPDF SDK offers a 30-day free trial so you can evaluate core PDF capabilities in your own application.
To get started:
- Apply for a free trial
- Review supported trial features and licensing details
- Follow the integration guides above and license steps to activate the SDK in your project
For custom deployments, advanced features, or volume licensing, please contact our sales team
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.
Go to our Changelog to keep up with the latest updates, improvements, and bug fixes.




