Create Tools package from PDFViewCtrlTools Java source code
Before you get started, it is a good idea to first have some basic knowledge on the topic. Xamarin provides a comprehensive guide on Binding a Java Library and we recommend you to briefly go through it. Please note that you will not need to create a binding project as it is already provided in the package.
Apryse Android SDK for Xamarin is a completely open source binding project. By the end of this tutorial, you will be able to create PDFTron.Android.Tools NuGet package from source.
Download the Apryse for Xamarin.Android SDK package, refer to as
PDFNetXamarin.Androidpackage belowDownload the Apryse for Android SDK package, refer to as
PDFNetAndroidpackage belowIn
PDFNetAndroidpackage, update the/lib/src/PDFViewCtrlToolsproject in Android Studio as you wishOnce you are done with changing the source code in Java, create
PDFViewCtrlTools-release.aarby either clean build from Android Studio or command line viagradle clean build, the output can be found in/PDFViewCtrlTools/build/outputs/aarfolderRename
PDFViewCtrlTools-release.aarfrom previous step totools.aarand copy it toPDFNetXamarin.Android/lib/android/NativefolderCopy either of
full/pdftron.aarorstandard/pdftron.aarfromPDFNetAndroid/libfolder toPDFNetXamarin.Android/lib/android/Nativefolder, yourPDFNetXamarin.Android/lib/android/Nativefolder should now look like this:

From
PDFNetXamarin.Androidpackage, open/projectSrc/PDFNetAndroidXamarin/PDFNetAndroidXamarin.slnin Visual Studio, make sure you see it gets all the NuGet PackagesMake sure there is no missing files when you expand the folders in Visual Studio

Clean the project
Build
PDFViewCtrlToolsprojectYou can find the output
PDFTron.Android.Tools.nupkginPDFNetXamarin.Android/lib/androidfolder
Last updated
Was this helpful?