|
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
|
|
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!
|
|
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!
|
|
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?
|
|
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.
|
|