Skip to content

Commit 1d390a8

Browse files
authored
feat(PdfReader): add IsShow parameter (#7357)
* feat(PdfReader): add DownloadFileName parameter * refactor: 更新文档 * chore: bump version 10.0.20 * doc: 更新文档 * doc: 更新实例方法文档 * doc: 增加依赖说明文档 * doc: 更新文档
1 parent d06670c commit 1d390a8

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
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.18" />
66+
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.20" />
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
<PackageTips Name="BootstrapBlazor.PdfReader" />
88

99
<DemoBlock Title="@Localizer["PdfReaderNormalText"]" Introduction="@Localizer["PdfReaderNormalIntro"]" Name="Normal">
10+
<p>@((MarkupString)Localizer["PdfReaderFAIconDesc"].Value)</p>
11+
<Pre>&lt;link rel="stylesheet" href="@@Assets["_content/BootstrapBlazor.FontAwesome/css/font-awesome.min.css"]" /&gt;</Pre>
12+
<ul class="ul-demo">
13+
<li>@((MarkupString)Localizer["PdfReaderSetPdfStreamDesc"].Value)</li>
14+
<li>@((MarkupString)Localizer["PdfReaderDownloadFileNameDesc"].Value)</li>
15+
</ul>
1016
<section ignore class="row form-inline g-3" style="--bb-input-group-label-width: 176px;">
1117
<div class="col-12 col-sm-6">
1218
<BootstrapInputGroup>

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5965,6 +5965,9 @@
59655965
"PdfIntro": "Embed and display PDF documents directly in web pages without relying on a PDF reader installed locally by the user.",
59665966
"PdfReaderNormalText": "Basic usage",
59675967
"PdfReaderNormalIntro": "Set the PDF file address using the <code>Url</code> parameter, or specify the file stream to be rendered using the <code>OnGetStreamAsync</code> parameter.",
5968+
"PdfReaderFAIconDesc": "The <code>PdfReader</code> component icon depends on the <code>BootstrapBlazor.FontAwesome</code> package. You need to reference the following styles; otherwise, the toolbar icon will not display.",
5969+
"PdfReaderSetPdfStreamDesc": "Rendering can be performed by calling the instance method <code>SetPdfStreamAsync</code> or <code>SetPdfBase64DataAsync</code>.",
5970+
"PdfReaderDownloadFileNameDesc": "You can set the download file name by configuring the parameter <code>DownloadFileName</code>.",
59685971
"PdfReaderStreamModeText": "Stream mode",
59695972
"PdfReaderStreamModeIntro": "read remote files by cross-domain",
59705973
"PdfReaderCompatibilityModeText": "Compatibility mode",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5965,6 +5965,9 @@
59655965
"PdfIntro": "在网页中直接嵌入和显示 PDF 文档,无需依赖用户本地安装的 PDF 阅读器",
59665966
"PdfReaderNormalText": "基础用法",
59675967
"PdfReaderNormalIntro": "通过 <code>Url</code> 参数设置 pdf 文件地址,或者使用 <code>OnGetStreamAsync</code> 参数指定用于渲染的文件流",
5968+
"PdfReaderFAIconDesc": "<code>PdfReader</code> 组件图标依赖 <code>BootstrapBlazor.FontAwesome</code> 包,需要引用如下样式,否则工具栏图标无法显示",
5969+
"PdfReaderSetPdfStreamDesc": "可以通过调用实例方法 <code>SetPdfStreamAsync</code> 或者 <code>SetPdfBase64DataAsync</code> 推流进行渲染",
5970+
"PdfReaderDownloadFileNameDesc": "可以通过设置参数 <code>DownloadFileName</code> 值,用于设置下载文件名",
59685971
"PdfReaderStreamModeText": "流模式",
59695972
"PdfReaderStreamModeIntro": "可跨域读取文件",
59705973
"PdfReaderCompatibilityModeText": "兼容模式",

0 commit comments

Comments
 (0)