Manually integrating PDFNetC PDF library for UWP
This SDK is made for those developing UWP apps and require a pure C++ PDF SDK that only uses the allowed Win32 and COM API's to pass the Windows App Certification in order to be published on Microsoft Store.
This guide will help you run Apryse samples and integrate a free trial of the Apryse SDK into C++ applications on Windows. Your free trial includes full support from solution engineers..
Prerequisites
Visual StudioMake sure that the
Desktop development with C++workload is part of your installation.This guide will use Visual Studio 2019 and the x64-bit SDK version.Apryse's PDF library for UWP:
Download the SDK
download C/C++ (64-bit) for UWP%24s3%5Ej/PDFNetC64UWP_9.1.1.zip)
Download the SDK
download C/C++ (ARM64) for UWP%24s3%5Ej/PDFNetCARM64UWP_9.1.1.zip)
Keep your license keys confidential.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
Initial setup
Extract the folder from the .zip file.
This article uses PDFNET_BASE as the path into the PDFNetC folder that you extracted.
Run the samples
Navigate to the location of extracted contents. Find and enter the Samples folder (PDFNET_BASE/Samples). Here you can find sample code for a large number of features supported by the Apryse SDK.
Find Samples_VC20XX.sln inside the Samples folder and open it with Visual Studio. Choose the appropriate solution based on your Visual Studio installation.
Run a specific sample
Find the sample you want to run and set it as the Startup project.If you're running into issues, see the Troubleshooting section.
Run the project.
Run all samples
Make sure that the target type for the debugger is set to the right type for your machine and your Apryse SDK Download. Click on Local Windows Debugger to run all the samples.

Note: For ARM64 target it will be necessary to setup the Remote Debugger.
Integrate into your application
This section will help you build the "Apryse Hello World" application. It is easy to integrate the rest of Apryse SDK if you are able to open, save and close a PDFDoc.
Before writing the application, some dependencies needed to be with Visual Studio.
Create a new C++ Console Project for Windows called
myappAdd
PDFNET_BASE\Lib\PDFNetC.libto Additional Dependencies under LibrarianAdd
PDFNET_BASE\Headersto the project's Additional Include Directories in the C/C++ General Settings.Copy the
PDFNET_BASE\Lib\PDFNetC.dllfile to the project's output directory. Verify that the right version of PDFNetC.dll was added from the path used to add the reference.
The Troubleshooting section has more detailed instructions for newcomers to Visual Studio.
The Code
Replace the contents of myapp.cpp with:
{% endcode %} {% endtab %} {% endtabs %}
Last updated
Was this helpful?