- Posts: 22
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Issues using the framework
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
11 years 4 months ago - 11 years 4 months ago #8906
by marco.klein
Issues using the framework was created by marco.klein
Hi together,
we are testing several frameworks right now and in order to decrease the time for switching the framework we have build an abstraction layer as two seperate libraries.
So there's currently our mainapp which references the abstraction layer and the radaee pdf implementation layer. This implementation layer references the com.radaee project from your sample project. Everything builds, but on start I get this error message:
First, I got a library not found error about searching for "rpdf". Since I realized that the *.so get renamed on build to libcom.radaee.so instead of keeping up the name "librpdf.so", I changed the line in Global.java:
This seems to work, but now it does not find the method loadStdFont. Hereby you'll find the architecture attached, for a better understanding. In order to be clear about this: If we need to buy the license for testing, this will not be our product then!^
We appreciate any help!
we are testing several frameworks right now and in order to decrease the time for switching the framework we have build an abstraction layer as two seperate libraries.
So there's currently our mainapp which references the abstraction layer and the radaee pdf implementation layer. This implementation layer references the com.radaee project from your sample project. Everything builds, but on start I get this error message:
Code:
Process: ******, PID: 7616
java.lang.UnsatisfiedLinkError: Native method not found: com.radaee.pdf.Global.loadStdFont:(ILjava/lang/String;)V
at com.radaee.pdf.Global.loadStdFont(Native Method)
at com.radaee.pdf.Global.load_std_font(Global.java:327)
at com.radaee.pdf.Global.Init(Global.java:366)
at com.radaee.pdf.Global.Init(Global.java:36)
First, I got a library not found error about searching for "rpdf". Since I realized that the *.so get renamed on build to libcom.radaee.so instead of keeping up the name "librpdf.so", I changed the line in Global.java:
Code:
System.loadLibrary("com.radaee");
This seems to work, but now it does not find the method loadStdFont. Hereby you'll find the architecture attached, for a better understanding. In order to be clear about this: If we need to buy the license for testing, this will not be our product then!^
We appreciate any help!
Last edit: 11 years 4 months ago by marco.klein.
11 years 4 months ago #8909
by support
Replied by support on topic Issues using the framework
Dear Marco,
I need some clarification.
Which development tool are you adopting?
Both Eclipse and AndroidStudio seems not changing .so file name (I've just opened an apk to double check my though).
May be you're adopting Xamarin or other tool.
I need some clarification.
Which development tool are you adopting?
Both Eclipse and AndroidStudio seems not changing .so file name (I've just opened an apk to double check my though).
May be you're adopting Xamarin or other tool.
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
11 years 4 months ago - 11 years 4 months ago #8910
by marco.klein
Replied by marco.klein on topic Issues using the framework
Hi,
found the solution or the actual problem: I don't know what the named files are coming from - But putting the *.so files into the actual applications libs folder has solved the issue. Now they are in the package. But I have another problem. When trying to edit the PDF with the sample view control.... I get an error toast saying "can't write or encrypted". What's wrong here?
I see, it's something about this, but what?
Kindest Regards
Marco
found the solution or the actual problem: I don't know what the named files are coming from - But putting the *.so files into the actual applications libs folder has solved the issue. Now they are in the package. But I have another problem. When trying to edit the PDF with the sample view control.... I get an error toast saying "can't write or encrypted". What's wrong here?
I see, it's something about this, but what?
Code:
if( rad_group.getCheckedRadioButtonId() == R.id.rad_copy )
........
else if(document.getNative().CanSave() )
......
else
Toast.makeText(context, "can't write or encrypted!", Toast.LENGTH_SHORT).show();
Kindest Regards
Marco
Last edit: 11 years 4 months ago by marco.klein.
11 years 4 months ago #8911
by support
Replied by support on topic Issues using the framework
Are you activating the Premium license?
Fields interfaces are available only when Premium is active.
Give your application the same application package name you'll find in the demo project.
Find activation key in the Global.java source.
Fields interfaces are available only when Premium is active.
Give your application the same application package name you'll find in the demo project.
Find activation key in the Global.java source.
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
11 years 4 months ago #8912
by marco.klein
Replied by marco.klein on topic Issues using the framework
Hi,
I'll try to, but I find this a rather inconvenient way to do a trial
Maybe think of some watermark in the future that applies to all pdf docs automatically when not having a valid license?
Kindest Regards
Marco
I'll try to, but I find this a rather inconvenient way to do a trial
Maybe think of some watermark in the future that applies to all pdf docs automatically when not having a valid license?
Kindest Regards
Marco
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
11 years 4 months ago #8913
by marco.klein
Replied by marco.klein on topic Issues using the framework
Hi,
I have changed my package property in the android manifest to
This seems not to be sufficient. Do I need to do anything else?
Kindest Regards
Marco
I have changed my package property in the android manifest to
Code:
package="com.radaee.reader"
This seems not to be sufficient. Do I need to do anything else?
Kindest Regards
Marco
Time to create page: 0.432 seconds