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:

Toolbar/Button Configuration 7 years 6 months ago #12185

  • gianlucaz
  • gianlucaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
hi, im using the cordova plugin on an ios/android application.

is it possible to configure (enable/disable buttons) or completely turn off the toolbar from the pdf plugin?
we want our customer only to be able to exit the pdf-view (with a close button) and not be able to use the other buttons (like print, etc.).

cheers,
gianluca

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

Last edit: by gianlucaz.

Toolbar/Button Configuration 7 years 6 months ago #12197

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

you can use plugin properties to hide toolbar buttons:
plugin.HideGridImage = true;
plugin.HideLineImage = true;
plugin.HideRectImage = true;
plugin.HidePrintImage = true;
plugin.HideSearchImage = true;
plugin.HideEllipseImage = true;
plugin.HideOutlineImage = true;
plugin.HideBookmarkImage = true;
plugin.HideViewModeImage = true;
plugin.HideBookmarkListImage = true;

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

Toolbar/Button Configuration 7 years 6 months ago #12198

  • gianlucaz
  • gianlucaz's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
hi dario, thanks for your quick reply.

unfortunately it doesn't work for me.

i'm using the plugin in a ionic framework 2 projeckt (with your cordova plugin).
pdf is opened correctly but the settings do not seem to have any effect.

my code to open the pdf looks like this:
RadaeePDFPlugin.HideGridImage = true; // 1st try, set properties before pdf is opened

RadaeePDFPlugin.open({
              url: url,
              password: password
          },
          function (message) { // Success
              console.log("OPEN PDF SUCCESS!");
              RadaeePDFPlugin.HideGridImage = true; // 2nd try, set property after pdf is openend
              console.log(message);
          },
          function (err) { // Error
              console.log("CAN NOT OPEN PDF");
              console.log(err);
          });

can you help?

cheers,
gianluca

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

Toolbar/Button Configuration 7 years 2 months ago #12745

  • pfrank
  • pfrank's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
Hi,
how can I access these hide properties in Xamarin.Android?
RadaeePDFManager doesn't seem to have these properties. There is no RadaeePDFPlugin like in iOS.

Regards
Patrick

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

Toolbar/Button Configuration 6 years 9 months ago #13317

  • sasisas
  • sasisas's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
how to implement these in my code

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

  • Page:
  • 1
Powered by Kunena Forum