Welcome Guest Search | Active Topics | Sign In | Register

PdfViewer suppress context menu and drop down toolbar Options
sraitken
Posted: Friday, March 15, 2019 8:56:36 AM
Rank: Newbie
Groups: Member

Joined: 3/13/2019
Posts: 6
When displaying a pdf with the PdfViewer, right clicking on the pdf displays a menu with menu choices Back, Forward, Print, and View Page Source. Is there a way to stop the display of this menu or to change the items?

Also, when moving the cursor to the top of the pdf, a dropdown is displayed with download and print buttons. Is there a way to hide or disable these buttons or the dropdown entirely?

Thanks
eo_support
Posted: Friday, March 15, 2019 5:07:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi,

There is no way to customize either in the current build. However we will add context menu support in our next build, in that build you will be able to set the WebControls' ContextMenu property to use a custom context menu instead. We do not have any plans to add options to disable download and print buttons entirely yet.

We will reply here again as soon as we have added the context menu support.

Thanks!
eo_support
Posted: Monday, April 1, 2019 12:15:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi,

This is just to let you know that we have posted a new build (19.0.97) that added context menu support. You can use the platform's (either Windows Forms or WPF) native context menu support on PdfViewer object now. Note that the context menu must be on the PdfViewer object directly, not on a parent control. Setting context menu on a parent control usually works fine for standard controls, but will not work properly on the PdfViewer control. Also the PdfViewer control no longer displays the built-in WebView context menu by default.

You can download the new build from our download page. Please take a look and let us know how it goes.

Thanks!
sraitken
Posted: Monday, April 1, 2019 1:03:19 PM
Rank: Newbie
Groups: Member

Joined: 3/13/2019
Posts: 6
Thanks for the context menu support, exactly what I was looking for!

Do you have plans to provide means to suppress the drop down toolbar?
eo_support
Posted: Monday, April 1, 2019 1:53:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
No. We do not have any plan in the near future to suppress the toolbar. This is a part of Chromium's built-in PDFViewer and generally we prefer a "hands off" approach on the browser engine itself. We may review this issue again in the future though.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.