Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
  • Page:
  • 1

TOPIC:

Unable to open/select local pdf files 3 years 3 months ago #15428

  • gaupun
  • gaupun's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
1. I'm trying to integrate your demo android project with my react native-based application. I was successfully able to open remote pdf files, but when I'm trying to open a local pdf file from sd card. It throws the following error: "Unable to open: invalid path or access denied". I verified the file's location, it's the same path as specified in the demo app and the app has all the required read/write permissions.

2. Also I'm unable to select/highlight any text on the pdf.

Could you please guide me with what I'm missing here?

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

Last edit: by gaupun.

Unable to open/select local pdf files 3 years 3 months ago #15429

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
first of all, you need to check permission of file, like:
File file = new File(your_path);
boolean readable = file.canRead();
boolean writable = file.canWrite();
if writable return false, please check permission configure in AndroidManifest.xml in your project.
if return true, please check method com.radaee.pdf.Global.Init();
there are some codes:
		switch(license_type)
		{
		case 1:
			ms_init = activeProfessional(act, company_name, mail, serial);
			break;
		case 2:
			ms_init = activePremium(act, company_name, mail, serial);
			break;
		default:
			ms_init = activeStandard(act, company_name, mail, serial);
			break;
		}
and you can check whether license active failed.
if failed, you need buy license for you app, the license is binding to package name of you app.
the demo project has actived a default package name "com.radaee.reader".
when you integrate all codes to your project, you shall change license for your package name,
or change you project package name to "com.radaee.reader".
The following user(s) said Thank You: gaupun

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

Unable to open/select local pdf files 3 years 3 months ago #15432

  • gaupun
  • gaupun's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Thank you for your help. Renaming my package as 'com.radaee.reader` worked. I was successfully able to integrate the android SDK with react. But now I'm moving forward with the iOS integration. So do I need to keep the ios package name same too?

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

Unable to open/select local pdf files 3 years 3 months ago #15433

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
OK, on ios, it shall different from Android.
because the bundle id is registered by account of radaee development team.
and all other developers can't build app with our bundle id.

so, you have to buy license before you publish your app.
mostly you need following steps:
1. test demo on simulator. (this not require signature for app)
2. merge codes to your app, and buy license binding to your bundle id.
3. test and publish.
the license key shall fill in method [RDAppDelegate application] in RDAppDelegate.m.
there are codes from demo project:
    g_id = [[NSBundle mainBundle] bundleIdentifier];//shall be com.radaee.viewer.
    g_company = @"radaee";//company to active license
    g_mail = @"radaeepdf@gmail.com";//email to active license
    g_serial = @"PW6HGI-4S5OLR-9ZOU9E-OQ31K2-5R5V9L-KM0Y1L";//serials
    [RDVGlobal Init];
that mean, you shall fill serials and other required fields, and then invoke [RDVGlobal Init] when app start.

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

Last edit: by radaee.

Unable to open/select local pdf files 3 years 2 months ago #15466

  • gaupun1
  • gaupun1's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
I have successfully integrated RadaeePDF with my react native-based iOS app. But when I open any pdf I'm not able to see any options (like text highlighter or annotators). I have attached a screenshot of my demo below. Is this because I'm using the demo license or have I done something during integration ?

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

Unable to open/select local pdf files 3 years 2 months ago #15467

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Dear user,
It seems like buttons' icons are not imported in right way.
Please make sure that you've well included icons from Radaee demo project's images.xcassets in your custom project.

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

  • Page:
  • 1
Powered by Kunena Forum