Below you can find methods to get and set globals property programmatically:
RadaeePDFPlugin.getGlobal(
{
name: “g_render_mode” //property name in globals’ class
},
function(message) {
console.log("Success: " + message);
},
function(err) {
console.log("Failure: " + err);
});
RadaeePDFPlugin.setGlobal(
{
name: “g_render_mode”, //property name in globals’ class
value: 3 //value to be set
},
function(message) {
console.log("Success: " + message);
},
function(err) {
console.log("Failure: " + err);
});
Now globals property are aligned with the same name.
For Android users: this update effects the Cordova plugin only, and not the original variable nomenclature in the native Android SDK.
For iOS users: this update should have effect on every plugin (Cordova, Xamarin, Swift) and also on iOS native SDK.
Here’s new complete global list:
Property name |
Type |
Effect |
|
int (hex) |
Changes the color of highlight annots |
|
boolean |
Enable/Disable annot locked property |
|
boolean |
Enable/Disable annot readonly property |
|
int (hex) |
Changes the color of squiggle annots |
|
int (hex) |
Changes the color of strikeout annots |
|
int (hex) |
Changes annotations' transparency |
|
int (hex) |
Change underline annot's color |
|
string |
if valorized, will be used to set the annotation author while its creation |
|
boolean |
if true the link action will be performed immediately otherwise the user must click on the play button |
|
boolean |
Enable/Disable case sensitive on searching |
|
boolean |
Changes the reader mode to dark |
|
int (hex) |
Chages ellipse annot's fill color |
|
boolean |
Enable/Disable signature annot management |
|
boolean |
Enable/Disable JS annot's execution |
|
int (hex) |
Changes the color of the selected find item |
|
boolean |
Enable/Disable blank space trimming in the signature bitmap |
|
boolean |
Enable/Disable highlighting annotation on selection |
|
int (hex) |
Changes the color of ink annots |
|
float |
Changes the width of ink annots |
|
int (hex) |
Changes line annot's fill color |
|
int |
Change line annot style for start point |
|
int |
Change line annot style for end point |
|
int (hex) |
Change line annot's color |
|
float |
Change line annot's width |
|
boolean |
Enable/disable matching whole word on searching |
|
int |
navigation mode, 0:thumbnail view 1:seekbar view |
|
int (hex) |
Change ellipse annot's color |
|
float |
Change ellipse anno's width |
|
int (hex) |
Changes reader view's background color |
|
int (hex) |
Changes rect annot's fill color |
|
int (hex) |
Changes rect annot's color |
|
float |
Changes rect annot's width |
|
int |
Defines the view of the reader: 0 : vertical 1 : horizontal 2 : curl effect (another curl class http://www.radaeepdf.com/support/knowledge-base?view=kb&tmpl=component&kbartid=21) 3 : single page 4 : SingleEx 5 : Text Reflow 6 : Two pages in landscape |
|
int |
Defines the render quality 0 : draft 1 : normal 2 : best |
|
boolean |
Automatically save the document on close. |
|
int (hex) |
Changes the selection color |
|
boolean |
Defines if the text selection starts from right to left or the opposite |
|
string |
Defines description in add signature view |
|
boolean |
when true it calculates the scale of each page, when false it calculates scale according to the dimensions of the largest page |
|
int (hex) |
Defines thumbview background color |
|
int |
Defines thumbview height |
|
float |
Defines the zoom level from 2 to 5 |
|
float |
Defines the double tap zoom step |
RadaeePDF SDK for Cordova
Created : 2020-03-16 10:39:53, Last Modified : 2020-03-23 16:41:17