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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Problem with debenu_quick_pdf_library_android
  FAQ FAQ  Forum Search   Register Register  Login Login

Problem with debenu_quick_pdf_library_android

 Post Reply Post Reply
Author
Message
Ludwig View Drop Down
Team Player
Team Player


Joined: 07 May 15
Location: India
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ludwig Quote  Post ReplyReply Direct Link To This Post Topic: Problem with debenu_quick_pdf_library_android
    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
Back to Top
Marek View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 21 May 15
Status: Offline
Points: 6
Post Options Post Options   Thanks (1) Thanks(1)   Quote Marek Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 15 at 8:38AM
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store