Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Problem with debenu_quick_pdf_library_android |
Post Reply |
Author | |
Ludwig
Team Player Joined: 07 May 15 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
Posted: 18 May 15 at 3:01PM |
The AndroidStudio_sample does not have an interface (.i) file. How can I get it. The sample appears to be using SWIG for generating the JNI code. Do we need to write the interface files ourselves
|
|
Marek
Moderator Group Joined: 21 May 15 Status: Offline Points: 6 |
Post Options
Thanks(1)
|
Hello Ludwig,
The interface file is not needed, and you don't need to create your own interface files. The swig was used to create the java wrapper that was then included and compiled into the .so file. So look at the sample project to see how to use it. Go to the app/src/main/java directory in the sample project. There you will find 2 packages. com.debenu.pdflibrary.* and com.debenu.dqplandroidexample pdflibrary package has 2 files FlatAPIJNI.java which is a jni interface that can call the functions in .so file the second file is dpl.java which uses the FlatAPIJNI. In your application you have to just import the library package like this: import com.debenu.pdflibrary.DPL; and then you can use the library functions. Check the dqplandroidexample package, inside it is MainActivity.java file that imports the library package and then uses it. First thing you must do before compilation of the sample project is to search in the MainActivity.java code for this string "...TYPE_YOUR_KEY_HERE..." You need to replace this string with your library key to unlock it. After that you can use all the functions. Review the MainActivity.java code for yourself to see how to use the library.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store