Frequently Asked Question
This article explains how to update your Radaee PDF Library for iOS from an older release to the latest version. Proper synchronization between the native library and source files is essential for stability.
1. Where to get the latest update
The latest update for Radaee PDF Library for iOS is available on our official GitHub repository:
2. Replace Files and Update Activation
The activation method was updated on 2022-03-10. Older versions required a bundle ID, email, and company name; the latest version only requires the serial key.
Steps to update:
- Download or Clone the latest update from the GitHub link above.
- Replace the PDFViewer folder in your project with the new one. Ensure the following subfolders are updated:
PDFLib/(containslibRDPDFLib.aandPDFIOS.h)PDFLayout/(containsRDVGlobal.h/m)PDFView/,PDFReader/,RDPlugin/,RDFileCollection/
- Modify the activation code: Remove the old parameters (g_id, g_company, g_mail) and use only the new serial key.
Old Code (Before March 2022):
g_id = [[NSBundle mainBundle] bundleIdentifier]; g_company = @"radaee"; g_mail = @"[email protected]"; g_serial = @"YOUR_OLD_KEY"; [RDVGlobal Init];
New Code (Latest Version):
g_serial = @"[YOUR_ACTIVATION_KEY]"; [RDVGlobal Init];
3. Checking Activation Status
You should typically invoke the activation in your AppDelegate. To verify the status, check the Xcode console output after calling [RDVGlobal Init].
The library internally executes the following check:
BOOL isActive = (Global_active(g_serial) > 0);
if (isActive)
NSLog(@"License active");
else
NSLog(@"License not active"); License Type Reference Table (Global_active return values):
| Value | Activation Result |
|---|---|
| 0 | Failed to activate |
| 1 | Standard Edition |
| 2 | Professional Edition |
| 3 | Premium Edition |