Skip to content

Commit aecd38c

Browse files
authored
feat(PdfReader): add ShowFileName parameter (#7443)
* feat(PdfReader): add ShowFileName parameter * chore: bump version 10.0.24
1 parent d4ad723 commit aecd38c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<PackageReference Include="BootstrapBlazor.OfficeViewer" Version="10.0.0" />
6464
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="10.0.0" />
6565
<PackageReference Include="BootstrapBlazor.OpcDa" Version="10.0.0" />
66-
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.23" />
66+
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.24" />
6767
<PackageReference Include="BootstrapBlazor.PdfViewer" Version="10.0.0" />
6868
<PackageReference Include="BootstrapBlazor.Player" Version="10.0.1" />
6969
<PackageReference Include="BootstrapBlazor.RDKit" Version="10.0.0" />

src/BootstrapBlazor.Server/Components/Samples/PdfReaders.razor

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
<Switch @bind-Value="_showToolbar"></Switch>
2121
</BootstrapInputGroup>
2222
</div>
23+
<div class="col-12 col-sm-6">
24+
<BootstrapInputGroup>
25+
<BootstrapInputGroupLabel>ShowFileName</BootstrapInputGroupLabel>
26+
<Switch @bind-Value="_showFileName"></Switch>
27+
</BootstrapInputGroup>
28+
</div>
2329
<div class="col-12 col-sm-6">
2430
<BootstrapInputGroup>
2531
<BootstrapInputGroupLabel>ShowDownload</BootstrapInputGroupLabel>
@@ -53,6 +59,6 @@
5359
</section>
5460
<PdfReader Url="@_url" EnableThumbnails="_enableThumbnails"
5561
ShowTwoPagesOneView="_showTwoPagesOneView" ShowDownload="_showDownload"
56-
ShowToolbar="_showToolbar" ShowPrint="_showPrint"
62+
ShowToolbar="_showToolbar" ShowPrint="_showPrint" ShowFileName="_showFileName"
5763
ViewHeight="600px" OnGetStreamAsync="OnGetStreamAsync"></PdfReader>
5864
</DemoBlock>

src/BootstrapBlazor.Server/Components/Samples/PdfReaders.razor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public partial class PdfReaders
2121
private bool _enableThumbnails = true;
2222
private bool _showDownload = true;
2323
private bool _showToolbar = true;
24+
private bool _showFileName = true;
2425
private string _url = "./samples/sample.pdf";
2526
private string _streamFileName = "";
2627

0 commit comments

Comments
 (0)