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

TOPIC:

Document Help 4 years 4 months ago #14754

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi Robert,
Using Radaee.setToolbarEnabled method with last RadaeePDF Cordova's plugin downloaded from GitHub you should have all buttons removed except back button on
RadaeePDFPlugin.setToolbarEnabled(
        {
            enabled: false
        },
        function (message) {
            console.log("Success: " + message);
        },
        function (err) {
            console.log("Failure: " + err);
        });
and you should have all buttons enabled with
RadaeePDFPlugin.setToolbarEnabled(
        {
            enabled: true
        },
        function (message) {
            console.log("Success: " + message);
        },
        function (err) {
            console.log("Failure: " + err);
        });
Here's some screenshots
Attachments:

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

Document Help 4 years 4 months ago #14759

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
Just a note... when I run on iOS, the entire upper toolbar is not visible.

When I call this function, that I wrapped in a 'about to start' and 'done' console logging before and after the line, I do not see any logging from the message/err calls in the function line. I do see the 'success' message from the activating call right before it. It almost seems like the function is not being processed.

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

Last edit: by robertlforsyth.

Document Help 4 years 4 months ago #14761

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
Have you got the same problem with RadaeePDF Cordova's demo version?
Could you send us your js code section where you set and show reader?

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

Last edit: by federico.

Document Help 4 years 4 months ago #14763

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
function LoadDoc(thefile) {

console.log('about to set toolbar');
RadaeePDFPlugin.setToolbarEnabled(
{
enabled: true
},
function (message)
{
console.log("Success: "+message);
},
function (err)
{
console.log("Failure: " + err);
}
);

console.log('done set toolbar');

RadaeePDFPlugin.setReaderViewMode( {mode: 6},function (message) {console.log("setview Success: "+message);},function (err) {console.log("setviewFailure: " + err); });

RadaeePDFPlugin.setThumbHeight( {height: 150},function (message) {console.log("setthumbheight Success: "+message);},function (err) {console.log("setviewFailure: " + err); });


var n = thefile.indexOf("https://");
writeLog('[401] LoadDoc - '+thefile)
$( "#loader" ).show();
//alert(n);
if (n < 0) {
writeLog('opening local');
//alert('local - '+thefile);
RadaeePDFPlugin.open({url: thefile,password: ""},function(message) {console.log("Success: " + message);},function(err){alert("Could not load Panorama: " + err);console.log("Failure: " + err);});
} else {
if (isOnline == '0') {
alert('Network not detected');
} else {
writeLog('opening http');
RadaeePDFPlugin.open({url: thefile,password: ""},function(message) {console.log("Success: " + message);},function(err){alert("Could not load Panorama: " + err);console.log("Failure: " + err);});
}
}
$( "#loader" ).hide();

};

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

Document Help 4 years 4 months ago #14764

  • robertlforsyth
  • robertlforsyth's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
  • Thank you received: 0
here is a screen grab after the open
Attachments:

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

Document Help 4 years 4 months ago #14770

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
I tried setting view mode 6 and thumb 150 height and also opening PDF from URL with RadaeePDF Cordova's demo version but I still have no problems about enable/disable toolbar, also with iPhone 11 simulator
I suggest you to try with demo version and start your project based on it.
Then if you still have some problems, if you send us your project we could try to see what's wrong.

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

Powered by Kunena Forum