Platforms
Frameworks
Languages
The Apryse Server SDK is cross-platform and supported on Windows, Linux, and macOS. The base package is robust, allowing you to programmatically do the following and more with PDFs:
Additional functionality
If you’re looking for additional capabilities, we offer add-on packages, such as Smart Data Extraction, and add-on modules, such as Office Conversion. For a complete list of add-ons, refer to the following:
Solutions & benefits
Using the Server SDK allows you to build server-side document processing solutions at scale without relying on client devices or cloud APIs. Since the Server runs entirely on-premises (or in your private cloud), you can ensure security and compliance with full control over access, storage, and encryption. You can also easily integrate with web apps, backend systems, document management systems, and content workflows.
Steps & samples
This guide walks you through steps to integrate the Apryse Server SDK free trial into your project. We’ll use a C++ project as our example project throughout this guide. By the end, you’ll have built a simple PDF-generation application and be able to open, save, and close a PDF Doc.
This section helps you get started with one of our samples to see the output you can create when you integrate the Apryse Server SDK into your application. It also includes instructions on how to create a C++ project, then integrate Server SDK into the project. In the end, you’ll create and open a blank PDF within your project.
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 will download and run the OfficeToPDFTest PDFNet sample module, which demonstrates the SDK's document-conversion capabilities. Upon successful completion, you will have converted 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:
PDFNetC64.zip file to the following location: C:\Users\YourName\PDFNetC64\PDFNetC64\Samples. Replace YourName with your user name.C:\Users\YourName... replace YourName with your user name.3. Before running the sample, you need to add your license key to the LicenseKey.h file. Open Visual Studio, select File > Open > File... and navigate to: C:\Users\Your Name\PDFNetC64\PDFNetC64\Samples\LicenseKey\CPP (CPP or CPPS folder, depending on your distribution).
4. Select the LicenseKey.h file and click Open.
5. In the LicenseKey.h file, scroll down to the line containing //#define LicenseKey “YOUR_PDFTRON_LICENSE_KEY”. Uncomment this line (remove the // ) 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.
6. Save your changes and close the LicenseKey.h file.
7. In Visual Studio, select File > Open > Project/Solution and navigate to: C:\Users\Your Name\PDFNetC64\PDFNetC64\Samples\OfficeToPDFTest\CPP (CPP or CPPS folder, depending on your distribution).
8. Select the OfficeToPDFTestVC2019.vcxproj file and click Open. If a Retarget Projects dialog displays, click OK.
9. From the Main menu, select Build > Build Solution. After building, the output pane shows Build Completed.
10. From the Main menu, select Debug > Start Without Debugging.
11. 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, a command line window opens showing the demo mode is Done. Press any key to close the command line window.
12. Go to your File Explorer and navigate to: C:\Users\YourName\PDFNetC64\PDFNetC64\Samples\TestFiles\Output. You will see three output PDF files (Fishermen.pdf, the_rime_of_the_ancient_mariner.pdf, and the factsheet_Arabic.pdf).
13. Open 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 C++ 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.
C:\Users\YourName\source\repos.Note the name and location of your new project – we will refer to it below in section 4. Run your project.
Before running the application, configure the following dependencies:
$(OutDir).C:\Users\YourName\PDFNetC64\PDFNetC64\Headers and then click Apply.C:\Users\YourName\PDFNetC64\PDFNetC64\Lib and then click Apply.PDFNetC.lib, click Apply and then click OK.This section helps you build a simple PDF-generation application.
C:\Users\YourName\PDFNetC64\PDFNetC64\Lib and copy the PDFNetC.dll file.C:\Users\YourName\source\repos\ApryseGetStarted\x64\Debug and paste the PDFNetC.dll file in this folder.4. From the Main toolbar in Visual Studio, click on Build > Build Solution to compile the program. In the Output pane you will see Build: 1 succeeded.
5. Under the Main toolbar in Visual Studio, click on Debug > Start Without Debugging. The program runs and a command line window displays PDFNet is running in demo mode.
6. Press any key to close the command line window.
The sample code you just ran performs the following actions:
7. In File Explorer, navigate to the project’s output directory where the PDF file has been saved (this is the location you specified in section 2. Create a new PDFNet C++ project, step 4 above: C:\Users\YourName\source\repos\ApryseGetStarted\x64\Debug).
8. Open the linearized_output.pdf which you created by integrating the Apryse Server SDK!
Now that you have successfully run the OfficeToPDFTest sample (in section 1) and integrated the Apryse Server SDK C++ PDF Library into your application, you can try out 50+ samples depending on your needs.
9. To try additional samples, go to section 1. Run a PDFNet sample project > step 2 above and choose another sample to run.
Older versions of Visual Studio
Find out more about the Visual Studio versions we support.
Trouble setting dependencies
Set dependencies for the Apryse SDK in a startup project with Visual Studio.
This guide will help you run Apryse samples and integrate a free trial of the Apryse SDK into C++ 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).
tar xvzf PDFNetC64.tar.gz or tar xvzf PDFNetCArm64.tar.gz or tar xvzf PDFNetCAlpine64.tar.gz or tar xvzf PDFNetC.tar.gz.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.
Run a specific sample
CPP folder in the sample you want to run and make the project by calling make. Then run the test by executingFor example to run AddImageTest, navigate to /Samples/AddImageTest/CPP and execute ./AddImageTest.
Run all samples
/Samples and executeThe 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 and create a new directory called myApp if it does not exist already. This guide will assume your project is named myApp. Enter your myApp directory and create a CPP directory for organization. Then create a myApp.cpp file in the CPP directory.myApp.cpp with your favorite text editor and paste this inside:./myApp. The output should read:Check the output.pdf that the program output in the same directory. It should be a PDF with one blank page.
This guide will help you run Apryse samples and integrate a free trial of the Apryse SDK into C++ 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.
Run a specific sample
CPP folder in the sample you want to run and make the project by calling make. Then run the test by executingFor example to run AddImageTest, navigate to /Samples/AddImageTest/CPP and execute ./AddImageTest.
Run all samples
/Samples and executeThe 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 and create a new directory called myApp if it does not exist already. This guide will assume your project is named myApp. Enter your myApp directory and create a CPP directory for organization. Then create a myApp.cpp file in the CPP directory.myApp.cpp with your favorite text editor and paste this inside:./myApp. The output should read:Check the output.pdf that the program output in the same directory. It should be a PDF with one blank page.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales