Skip to content

PDFix SDK samples for Java Maven. PDF manipulation, content extraction, conversion , accessibility and more...

Notifications You must be signed in to change notification settings

pdfix/pdfix_sdk_example_java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFix SDK example Java Maven

Example project demonstrating the capabilities of PDFix SDK written in Java.

Description

For more information please visit https://pdfix.net.

Quick Setup

Run setup_maven.sh to download and install all dependencies, then execute main class net.pdfix.App.

./setup_maven.sh

Compile App

mvn compile -f pom.xml
mvn package -f pom.xml

Run the sample

Make sure to copy dependencies from {zip}/include/java to lib/ folder next to net.pdfix.App-8.0.1.jar.

Run example_run.sh or use command:

java -jar target/net.pdfix.App-8.0.1.jar --pdfix-bin <your_path>/pdfix/bin --test <test_name>
  • --pdfix-bin - [optional] path to pdfix bin folder if stored on custom location
  • --test - [optional] the name of the test to run. For example AddTags, AddWatermark. All tests are executed if empty

Manual Setup

Download PDFix SDK from https://pdfix.net/download

Copy class libraries from the {zip}/include/java into ${project.basedir}/pdfix/include/java/ so that you see there

  • net.pdfix.pdfixlib-${sdk_verison_num}.jar
  • net.pdfix.ocrtesseract-${sdk_verison_num}.jar

Install native libraries from {zip}/bin on your system by copying them into java.library.path (e.g. /Library/Java/Extensions/)

  • Linux: libpdfix.so, libpdf_to_html.so, libocr_tesseract.so
  • MacOS: libpdfix.dylib, libpdf_to_html.dylib, libocr_tesseract.dylib
  • Windows: pdfix.dll, pdf_to_html.dll, ocr_tesseract.dll

Have a question? Need help?

Let us know and we’ll get back to you. Write us to [email protected] or fill the contact form.