Issues using the framework - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Issues using the framework

Issues using the framework 3 years 6 months ago #8906

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
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:
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:
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!

Please Log in or Create an account to join the conversation.

Last edit: by marco.klein.

Issues using the framework 3 years 6 months ago #8909

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
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.

Please Log in or Create an account to join the conversation.

Issues using the framework 3 years 6 months ago #8910

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
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?
                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

Please Log in or Create an account to join the conversation.

Last edit: by marco.klein.

Issues using the framework 3 years 6 months ago #8911

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
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.
The following user(s) said Thank You: marco.klein

Please Log in or Create an account to join the conversation.

Issues using the framework 3 years 6 months ago #8912

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Issues using the framework 3 years 6 months ago #8913

  • marco.klein
  • marco.klein's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi,

I have changed my package property in the android manifest to
package="com.radaee.reader"

This seems not to be sufficient. Do I need to do anything else?

Kindest Regards

Marco

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum