Skip to content

Commit 3fa5383

Browse files
author
Samuel Qian
committed
update
1 parent 165eb7a commit 3fa5383

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

specs/HiddenPdfToolbarItems.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Background
2-
When open a PDF file in Edge, there will be a toolbar at the top. The toolbar provide the functionality like print, save and annotation.
3-
And this PDF viewer is also available in WebView2. And we provide the API to enable users to customization the PDF toolbar.
2+
When opening a PDF file in Edge, there will be a toolbar at the top. The toolbar provides functionality like print, save and adding annotations.
3+
This PDF viewer is also available in WebView2. And we provide this new API to enable end developers to customize the PDF toolbar.
44

55

66
# Description
7-
We add a new `HiddenPdfToolbarItems` property in `CoreWebView2Settings`. This API allows users to hide buttons on the PDF toolbar.
7+
We add a new `HiddenPdfToolbarItems` property in `CoreWebView2Settings`. This API allows end developers to hide buttons on the PDF toolbar.
88
Currently, this API can hide the _save button_, _save as button_, and _print button_.
99
By default, `HiddenPdfToolbarItems` is equal to `None` which means no button will be hidden.
1010

@@ -85,7 +85,9 @@ cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(COREWEBVIEW2_PDF_TOOLBAR_ITEM);")
8585

8686
[uuid(183e7052-1d03-43a0-ab99-98e043b66b39), object, pointer_default(unique)]
8787
interface ICoreWebView2Settings6 : ICoreWebView2Settings5 {
88-
/// `HiddenPdfToolbarItems` is used to customize the PDF toolbar items. By default, it displays all of the items.
88+
/// `HiddenPdfToolbarItems` is used to customize the PDF toolbar items. By default, it is COREWEBVIEW2_PDF_TOOLBAR_ITEM_NONE and so it displays all of the items.
89+
/// Changes to this property apply to all CoreWebView2s in the same environment and using the same profile.
90+
/// Changes to this setting apply only after the next navigation.
8991
/// \snippet SettingsComponent.cpp ToggleHidePdfToolbarItems
9092
9193
[propget] HRESULT HiddenPdfToolbarItems([out, retval] COREWEBVIEW2_PDF_TOOLBAR_ITEM* hidden_pdf_toolbar_items);

0 commit comments

Comments
 (0)