From 70a41797c8d23e1a3acc122b9a5e7b2e1c07316e Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 12 Dec 2025 10:08:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/Locales/en-US.json | 2 +- src/BootstrapBlazor.Server/Locales/zh-CN.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index 9cfea5b081b..83716d39c7d 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -5964,7 +5964,7 @@ "PdfTitle": "PDF Reader", "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": "Use Filename parameter displays pdf file from local server, or Stream parameter use file stream for rendering", + "PdfReaderNormalIntro": "Set the PDF file address using the Url parameter, or specify the file stream to be rendered using the OnGetStreamAsync parameter.", "PdfReaderStreamModeText": "Stream mode", "PdfReaderStreamModeIntro": "read remote files by cross-domain", "PdfReaderCompatibilityModeText": "Compatibility mode", diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index 0c5777c4974..968045bc299 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -5964,7 +5964,7 @@ "PdfTitle": "PDF Reader PDF 文档阅读器", "PdfIntro": "在网页中直接嵌入和显示 PDF 文档,无需依赖用户本地安装的 PDF 阅读器", "PdfReaderNormalText": "基础用法", - "PdfReaderNormalIntro": "Filename 参数显示本服务器pdf文件,或 Stream 参数指定用于渲染的文件流", + "PdfReaderNormalIntro": "通过 Url 参数设置 pdf 文件地址,或者使用 OnGetStreamAsync 参数指定用于渲染的文件流", "PdfReaderStreamModeText": "流模式", "PdfReaderStreamModeIntro": "可跨域读取文件", "PdfReaderCompatibilityModeText": "兼容模式", From f3607582c0234f394ed7329680d2d887b9ea7612 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 12 Dec 2025 10:08:51 +0800 Subject: [PATCH 2/2] feat(PdfReader): add OnGetStreamAsync parameter --- src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj index 479334d10ee..8204fa7d1d5 100644 --- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj +++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj @@ -63,7 +63,7 @@ - +