Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<PackageReference Include="BootstrapBlazor.OfficeViewer" Version="10.0.0" />
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="10.0.0" />
<PackageReference Include="BootstrapBlazor.OpcDa" Version="10.0.0" />
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.18" />
<PackageReference Include="BootstrapBlazor.PdfReader" Version="10.0.21" />
<PackageReference Include="BootstrapBlazor.PdfViewer" Version="10.0.0" />
<PackageReference Include="BootstrapBlazor.Player" Version="10.0.1" />
<PackageReference Include="BootstrapBlazor.RDKit" Version="10.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
<PackageTips Name="BootstrapBlazor.PdfReader" />

<DemoBlock Title="@Localizer["PdfReaderNormalText"]" Introduction="@Localizer["PdfReaderNormalIntro"]" Name="Normal">
<p>@((MarkupString)Localizer["PdfReaderFAIconDesc"].Value)</p>
<Pre>&lt;link rel="stylesheet" href="@@Assets["_content/BootstrapBlazor.FontAwesome/css/font-awesome.min.css"]" /&gt;</Pre>
<ul class="ul-demo">
<li>@((MarkupString)Localizer["PdfReaderSetPdfStreamDesc"].Value)</li>
<li>@((MarkupString)Localizer["PdfReaderDownloadFileNameDesc"].Value)</li>
</ul>
<section ignore class="row form-inline g-3" style="--bb-input-group-label-width: 176px;">
<div class="col-12 col-sm-6">
<BootstrapInputGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/BootstrapBlazor.Server/Locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -5965,6 +5965,9 @@
"PdfIntro": "Embed and display PDF documents directly in web pages without relying on a PDF reader installed locally by the user.",
"PdfReaderNormalText": "Basic usage",
"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.",
"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.",
"PdfReaderSetPdfStreamDesc": "Rendering can be performed by calling the instance method <code>SetPdfStreamAsync</code> or <code>SetPdfBase64DataAsync</code>.",
"PdfReaderDownloadFileNameDesc": "You can set the download file name by configuring the parameter <code>DownloadFileName</code>.",
"PdfReaderStreamModeText": "Stream mode",
"PdfReaderStreamModeIntro": "read remote files by cross-domain",
"PdfReaderCompatibilityModeText": "Compatibility mode",
Expand Down
3 changes: 3 additions & 0 deletions src/BootstrapBlazor.Server/Locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -5965,6 +5965,9 @@
"PdfIntro": "在网页中直接嵌入和显示 PDF 文档,无需依赖用户本地安装的 PDF 阅读器",
"PdfReaderNormalText": "基础用法",
"PdfReaderNormalIntro": "通过 <code>Url</code> 参数设置 pdf 文件地址,或者使用 <code>OnGetStreamAsync</code> 参数指定用于渲染的文件流",
"PdfReaderFAIconDesc": "<code>PdfReader</code> 组件图标依赖 <code>BootstrapBlazor.FontAwesome</code> 包,需要引用如下样式,否则工具栏图标无法显示",
"PdfReaderSetPdfStreamDesc": "可以通过调用实例方法 <code>SetPdfStreamAsync</code> 或者 <code>SetPdfBase64DataAsync</code> 推流进行渲染",
"PdfReaderDownloadFileNameDesc": "可以通过设置参数 <code>DownloadFileName</code> 值,用于设置下载文件名",
"PdfReaderStreamModeText": "流模式",
"PdfReaderStreamModeIntro": "可跨域读取文件",
"PdfReaderCompatibilityModeText": "兼容模式",
Expand Down