Skip to content

ComPDFKit/compdfkit-pdf-sdk-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComPDF SDK for Java

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 ComPDF SDK useful, please consider giving us a ⭐ Star on GitHub — it helps us grow and improve! Got questions or ideas? 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.

Table of Contents

Supported Features

  • PDF Generation

    • Generates PDFs from HTML  

    • Provides PDF creation through APIs 

    • Supports a wide range of HTML and CSS tags  

    • Dynamic table generation 

    • Text reflow

  • Annotations:

    • Notes - add longer comments with adjustable icon shape and color

    • Ink - freehand drawing with customizable color, opacity, line thickness

    • Text - add, move, resize text directly on page

    • Inspector - adjust annotation looks (line styles, borders, colors, opacity, font)

    • Comment on Annotations and Update Status

    • Import & Export & Flatten Annotations (XFDF, FDF, JSON)

    • Highlight, Underline, Strikeout, Squiggly

    • Shapes - Rectangle, Oval, Line, Arrow, Polygon, Polyline, Cloud

    • Stamps, Sound, Movie, File Attachment, Link, Distance, Perimeter, Area

  • Forms:

    • Process fillable and static PDF forms

    • Form filling, form creation, form flattening

  • Document Editor:

    • Page manipulation - insert, delete, rotate, reorder, extract, crop
    • Split PDF, Merge PDF
  • Content Editor: Edit PDF text and images directly like in Word

  • Security:

    • Encryption - set open password, permission password
    • Restrict printing, copying, editing
  • Signatures:

    • Electronic Signatures - draw, type, image signatures

    • Digital Signatures - certificate-based signature validation

  • OCR:

    • AI OCR

    • Recognize Tables, Graphics, Images

    • Support recognition in 80+ Languages

  • Watermark:

    • Add Text or Image Watermarks

    • Delete Watermarks

    • Customize Watermarks

  • Compare Documents: Side-by-side document comparison to highlight differences

  • Redaction: Permanently remove sensitive content from PDFs

  • Measurement: Distance, area, perimeter measurement tools

  • Compress: Optimize and reduce PDF file size

  • PDF/A, PDF/X, PDF/E, PDF/UA: Standards compliance for archiving, printing, engineering, and accessibility

  • Batch Document Processing: Provides server-side batch document processing, including PDF editing, conversion, and generation.

  • Convert Files:

    • Convert PDF to Word, Excel, PPT, HTML, CSV, images (PNG,JPEG, JPEG, JPEG2000, BMP, TIFF, TGA, GIF), RTF, TXT, JSON, XML, markdown, searchable PDF, searchable OFD.

    • Convert images (PNG,JPEG, JPEG, JPEG2000, BMP, TIFF, TGA, GIF) to Word, Excel, PPT, HTML, CSV, RTF, TXT, JSON, XML.

    • Convert Word, Excel, PPT, HTML, CSV, PNG, RTF, TXT to PDF

Requirements

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)

How to Run a Demo

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.

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

How to Use ComPDF SDK for Java in Java Applications

This section will help you to quickly get started with ComPDF 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 ComPDF SDK for Java

  1. The first thing we need to do is to import ComPDF 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 ComPDF SDK for Java successfully!

Free Trial and License

ComPDF SDK offers a 30-day free trial so you can evaluate core PDF capabilities in your own application.

To get started:

  1. Apply for a free trial
  2. Review supported trial features and licensing details
  3. 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

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.

Changelog

Go to our Changelog to keep up with the latest updates, improvements, and bug fixes.

Related

  • ComPDF Cloud: We also provide Open API for developers. You can register a free API account to get up to 200+ API calls monthly for free.

About

ComPDF SDK for Java is a full-featured PDF library for server-side applications. Enable advanced PDF viewing, editing, annotating, form filling, digital signatures, redaction, and document manipulation in your JVM-based projects.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages