Platforms
Frameworks
Languages
Built for developers, the Apryse Server SDK is expansive, cross-platform, and fully supported on Windows, Linux, and macOS. Start programmatically handling core PDF functions server-side:
Based on the add-ons you’ve purchased, you’ll need to download the associated modules to support the functionality.
Solutions & benefits
Achieve scalable document automation without dependency on client-side tools or third-party cloud services. The Apryse Server SDK runs seamlessly on-premises or in your private cloud, granting you full control over access, encryption, and storage for maximum security and compliance. This enterprise-grade tool is designed for easy integration with your web apps, backend systems, and existing document management and content workflows. Power your solutions at scale with a trusted, controlled server-side document engine.
Steps & samples
This guide walks you through steps to integrate the Apryse Server SDK free trial into your project. We’ll use a Java project as our example project throughout this guide. By the end, you’ll have built an "Apryse Hello World" within your application and be able to open, save, and close a PDF Doc.
To get started, choose your preferred platform from the tabs below.
You'll get started with our samples to see the output you can create when you integrate the Apryse Server SDK into your Java projects. Next, you'll create a project and integrate the Server SDK into your Java project, using the Windows platform.
Before you start:
Apryse collects some data regarding your usage of the SDK for product improvement.
If you wish to continue without data collection, contact us and we will email you a no-tracking trial key for you to get started.
A commercial license key is required for use in a production environment. Contact sales by filling out our licensing form if you want to purchase a commercial license key.
License keys are uniquely generated and strictly confidential. Don't publish or store them in any public location, including public GitHub repositories.
In this section, you can download and run the OfficeToPDFTest PDFNet sample module, which demonstrates the SDK's document-conversion capabilities. Upon successful completion, you can convert a DOCX document to a PDF file while leveraging the MS Office-to-PDF conversion API. You can use this module as a reference implementation when integrating similar document-conversion functionality into your own applications. By running the sample, you can quickly:
PDFNetJava.zip file to the following location: C:\Users\YourName\PDFNetJava\PDFNetJava\Samples\ YourName with your user name. You can install the samples to another location if you prefer, but for this guide’s instructions, we used the location above.PDFTronLicense.java file. Open Visual Studio Code, select File > Open Folder, and navigate to: C:\Users\YourName\PDFNetJava\PDFNetJava\Samples and click on Select folder.private static String LicenseKey = ‘YOUR_PDFTRON_LICENSE_KEY’; and replace the words in quotes with the copy of your trial license key you generated when you completed the Prerequisites instructions above. Do not change any other information in this file.Note that if you encounter an error while trying to run the RunTest.bat file, you will need to unblock the RunTest.bat file. Select the RunTest.bat file, right-click and select Reveal in File Explorer. Right-click on the file and select Properties. Make sure the file is Unblocked.
10. When you run the RunTest.bat command, the sample code loads an Office document, converts the Office document to PDF, saves the resulting PDF, and outputs status messages to the console. For more details, you can look at additional OfficeToPDF sample code and the Convert MS Office (Word, Excel, PowerPoint) to PDF overview.
Once the sample has finished running, you will see 100% Done conversion in the command line.
11. Type exit to close the Integrated Terminal.
12. From the Explorer > Samples pane, scroll down and select the TestFiles >Output folder. You will see three output PDF files (Fishermen.pdf, the_rime_of_the_ancient_mariner.pdf, and the factsheet_Arabic.pdf).
13. Click on the PDF files to see the converted output. You have successfully run the OfficeToPDFTest conversion sample!
14. Close the output PDF files.
This section provides steps to create a simple Java project that uses the Apryse SDK and the PDFNet library to programmatically generate a blank PDF document. With these steps, you can learn how to set up your environment, import the required libraries, and run a script that produces a valid PDF file—all without manual intervention. This example provides a practical foundation for more advanced document‑generation workflows.
HelloWorld.java.HelloWorld.java file to create a blank PDF page:2. Scroll down to the line containing PDFNet.initialize(“YOUR_APRYSE_LICENSE_KEY”); and replace the words in quotes with the copy of your trial license key. Save your changes and close the file.
C:\Users\YourName\PDFNetJava\PDFNetJava\Samples\HelloWorld.Keep in mind the following about the code above:
3. In the terminal, type exit and press Enter.
4. Return to Visual Studio Code. In your Samples >HelloWorld folder, you will see the linearized_output.pdf file you created by integrating the Apryse Server SDK!
5. You have successfully added the Apryse Server SDK to your Java project!
Now that you have successfully run an OfficeToPDFTest sample and integrated the Apryse Server SDK Java PDF Library into your application, you can try out 50+ samples depending on your needs.
6 .To try additional samples, go to section 1. Run a sample > step 7 above and choose another sample to run.
This guide will help you run Apryse samples and integrate a free trial of the Apryse SDK into Java applications on Linux. Your free trial includes unlimited trial usage and support from solution engineers.
Download the SDK
A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
Apryse collects some data regarding your usage of the SDK for product improvement.
If you wish to continue without data collection, contact us and we will email you a no-tracking trial key for you to get started.
JAVA folder in a sample project, for example /Samples/AddImageTest/JAVA and run the sample with/Samples and runThe tests will run one by one.
This section will show you how to use our SDK to create a simple Apryse "Hello World!" application. It will create a document with one blank page and save it as a linearized PDF in its running directory.
/Samples directory of the Apryse SDK and create a directory called myApp if it does not exist already. This guide will assume your project is named myApp.myApp directory and create a JAVA directory for organization. Then create a myApp.java file in the JAVA directory. Open this file in your favorite text editor and paste: 3. Navigate back to your myApp project folder and compile your application using our PDFNet library:
4. Run the project by executing:
If all goes well, your terminal should output:
Check the output.pdf that the program output in the same directory. It should be a PDF with one blank page.
Check the troubleshooting page if you run into any issues going through this document.
1. Add the PDFNet Maven repository in your top-level pom.xml.
2. Add the PDFNet Maven dependency in your pom.xml.
pom.xml.src\main\java\your\java\folder\, add the following code to your java files. We use src\main\java\com\mycompany\app\App.java as an example:To test your code, you can navigate to the root of your project and run the following commands:
If the program runs successfully, you should see no error in the terminal.
We have demonstrated how to integrate Apryse's Java SDK into your Maven project. If your have any questions, please don't hesitate to contact us!
1. Add the PDFNet Maven repository in your top-level build.gradle.
2. Add the PDFNet dependency in your build.gradle.
Here we use a demo Gradle app as an example:
1. Add PDFNet Maven repository and dependency in your build.gradle.
2. In your app\src\main\java\your\java\folder\, add the following code to your java files. In this example, it's app\src\main\java\demo\App.java.
To test your code, you can navigate to the root of your project and run the following commands:
If the program builds successfully, you should see Apryse is running ... and BUILD SUCCESSFUL in the terminal.
We have demonstrated how to integrate Apryse's Java SDK into your Gradle project. You can find more information about building with Java on Gradle. If your have any questions, please don't hesitate to contact us!
This guide will help you run Apryse samples and integrate a free trial of the Apryse SDK into Java applications on macOS. Your free trial includes unlimited trial usage and support from solution engineers.
Download the SDK
A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
Apryse collects some data regarding your usage of the SDK for product improvement.
If you wish to continue without data collection, contact us and we will email you a no-tracking trial key for you to get started.
JAVA folder in a sample project, for example /Samples/AddImageTest/JAVA and run the sample with/Samples and runThe tests will run one by one.
This section will show you how to use our SDK to create a simple Apryse "Hello World!" application. It will create a document with one blank page and save it as a linearized PDF in its running directory.
/Samples directory of the Apryse SDK and create a directory called myApp if it does not exist already. This guide will assume your project is named myApp.myApp directory and create a JAVA directory for organization. Then create a myApp.java file in the JAVA directory. Open this file in your favorite text editor and paste:3. In that same JAVA directory inside your myApp project folder and compile your application using our PDFNet library:
4. Run the project by executing:
If all goes well, your terminal should output:
Check the output.pdf that the program output in the same directory. It should be a PDF with one blank page.
Check the troubleshooting page if you run into any issues going through this document.
1. Add the PDFNet Maven repository in your top-level pom.xml.
2. Add the PDFNet Maven dependency in your pom.xml.
pom.xml.src\main\java\your\java\folder\, add the following code to your java files. We use src\main\java\com\mycompany\app\App.java as an example:To test your code, you can navigate to the root of your project and run the following commands:
If the program runs successfully, you should see no error in the terminal.
We have demonstrated how to integrate Apryse's Java SDK into your Maven project. If your have any questions, please don't hesitate to contact us!
1. Add the PDFNet Maven repository in your top-level build.gradle.
2. Add the PDFNet dependency in your build.gradle.
Here we use a demo Gradle app as an example:
1. Add PDFNet Maven repository and dependency in your build.gradle.
2. In your app\src\main\java\your\java\folder\, add the following code to your java files. In this example, it's app\src\main\java\demo\App.java.
To test your code, you can navigate to the root of your project and run the following commands:
If the program builds successfully, you should see Apryse is running ... and BUILD SUCCESSFUL in the terminal.
We have demonstrated how to integrate Apryse's Java SDK into your Gradle project. Read more on building with Java on Gradle. If your have any questions, please don't hesitate to contact us!
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales