- Posts: 2
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
Cordova, Xamarin, Basic4Android topics are listed here.
Unable to open/select local pdf files
IP: 103.48.102.77
5 years 3 days ago - 5 years 3 days ago #15428
by gaupun
Unable to open/select local pdf files was created by gaupun
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?
2. Also I'm unable to select/highlight any text on the pdf.
Could you please guide me with what I'm missing here?
Last edit: 5 years 3 days ago by gaupun.
IP: 111.196.243.112
5 years 3 days ago #15429
by radaee
Replied by radaee on topic Unable to open/select local pdf files
dear user:
first of all, you need to check permission of file, like:
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:
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".
first of all, you need to check permission of file, like:
Code:
File file = new File(your_path);
boolean readable = file.canRead();
boolean writable = file.canWrite();
if return true, please check method com.radaee.pdf.Global.Init();
there are some codes:
Code:
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;
}
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".
IP: 103.48.102.77
5 years 2 days ago #15432
by gaupun
Replied by gaupun on topic Unable to open/select local pdf files
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?
IP: 111.196.243.31
5 years 1 day ago - 5 years 1 day ago #15433
by radaee
Replied by radaee on topic Unable to open/select local pdf files
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:
that mean, you shall fill serials and other required fields, and then invoke [RDVGlobal Init] when app start.
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:
Code:
g_id = [[NSBundle mainBundle] bundleIdentifier];//shall be com.radaee.viewer.
g_company = @"radaee";//company to active license
g_mail = @"[email protected]";//email to active license
g_serial = @"PW6HGI-4S5OLR-9ZOU9E-OQ31K2-5R5V9L-KM0Y1L";//serials
[RDVGlobal Init];
Last edit: 5 years 1 day ago by radaee.
IP: 43.242.208.125
4 years 10 months ago #15466
by gaupun1
Replied by gaupun1 on topic Unable to open/select local pdf files
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 ?
IP: 2.234.168.74
4 years 10 months ago #15467
by federico
Replied by federico on topic Unable to open/select local pdf files
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.
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.
Time to create page: 0.427 seconds