RadaeePDF.com :: Topic: Toolbar/Button Configuration (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.

TOPIC: Toolbar/Button Configuration

Toolbar/Button Configuration 9 months 2 weeks ago #12185

  • gianlucaz
  • gianlucaz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 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
Last Edit: 9 months 2 weeks ago by gianlucaz.
The administrator has disabled public write access.

Toolbar/Button Configuration 9 months 2 weeks ago #12197

  • emanuele
  • emanuele's Avatar
  • OFFLINE
  • Moderator
  • Posts: 462
  • Thank you received: 52
  • Karma: 15
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;
The administrator has disabled public write access.

Toolbar/Button Configuration 9 months 2 weeks ago #12198

  • gianlucaz
  • gianlucaz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 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
The administrator has disabled public write access.

Toolbar/Button Configuration 5 months 1 week ago #12745

  • pfrank
  • pfrank's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 1
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
The administrator has disabled public write access.

Toolbar/Button Configuration 1 week 4 days ago #13317

  • sasisas
  • sasisas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
how to implement these in my code
The administrator has disabled public write access.
Powered by Kunena Forum