File tree Expand file tree Collapse file tree
src/BootstrapBlazor.Server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 <PackageReference Include =" BootstrapBlazor.OnScreenKeyboard" Version =" 10.0.0" />
6666 <PackageReference Include =" BootstrapBlazor.OpcDa" Version =" 10.0.0" />
6767 <PackageReference Include =" BootstrapBlazor.PdfReader" Version =" 10.0.26" />
68- <PackageReference Include =" BootstrapBlazor.PdfViewer" Version =" 10.0.0 " />
68+ <PackageReference Include =" BootstrapBlazor.PdfViewer" Version =" 10.0.1 " />
6969 <PackageReference Include =" BootstrapBlazor.Player" Version =" 10.0.1" />
7070 <PackageReference Include =" BootstrapBlazor.RDKit" Version =" 10.0.0" />
7171 <PackageReference Include =" BootstrapBlazor.Region" Version =" 10.0.1" />
Original file line number Diff line number Diff line change 2929 </Select >
3030 </BootstrapInputGroup >
3131 </div >
32+ <div class =" col-12 col-sm-6" >
33+ <BootstrapInputGroup >
34+ <BootstrapInputGroupLabel >ShowToolbar</BootstrapInputGroupLabel >
35+ <Switch @bind-Value =" _showToolbar" ></Switch >
36+ </BootstrapInputGroup >
37+ </div >
3238 </div >
3339 </section >
34- <PdfViewer Url =" ./samples/sample.pdf" Height =" 620px" PageIndex =" @_pageIndex"
35- NotSupportCallback =" NotSupportCallback" OnLoaded =" OnLoaded"
40+ <PdfViewer Url =" ./samples/sample.pdf#toolbar=0&navpanes=0 " Height =" 620px" PageIndex =" @_pageIndex"
41+ NotSupportCallback =" NotSupportCallback" OnLoaded =" OnLoaded" ShowToolbar = " _showToolbar "
3642 UseGoogleDocs =" @_useGoogleDocs" ></PdfViewer >
3743</DemoBlock >
3844
Original file line number Diff line number Diff line change 1- // Licensed to the .NET Foundation under one or more agreements.
1+ // Licensed to the .NET Foundation under one or more agreements.
22// The .NET Foundation licenses this file to you under the Apache 2.0 License
33// See the LICENSE file in the project root for more information.
44// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -17,6 +17,8 @@ public partial class PdfViewers
1717
1818 private int _pageIndex = 1 ;
1919
20+ private bool _showToolbar = true ;
21+
2022 private Task OnLoaded ( ) => ToastService . Success ( "Pdf Viewer" , Localizer [ "PdfViewerToastSuccessfulContent" ] ) ;
2123
2224 private Task NotSupportCallback ( ) => ToastService . Error ( "PdfViewer" , Localizer [ "PdfViewerToastNotSupportContent" ] ) ;
You can’t perform that action at this time.
0 commit comments