File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 2626
2727<PackageTips Name =" BootstrapBlazor.Html2Pdf" />
2828
29+ <p class =" code-label" >常见问题</p >
30+
31+ <p class =" code-quest" >1. 本地或者发布后无法使用</p >
32+ <p class =" code-answer" ><code >BootstrapBlazor.Html2Pdf v9.0.3</code > 后增加了日志输出功能,可以根据日志判断具体问题出现在哪里。比如由于根据当前浏览器版本去下载对应版本的
33+ <code >chrome-headless-shell-win64.zip</code > 安装包</p >
34+ <Pre >info: BootstrapBlazor.Components.DefaultPdfService[0]
35+ Ready to start downloading browser
36+ info: BootstrapBlazor.Components.DefaultPdfService[0]
37+ Browser downloaded successfully. installed browser 138.0.7204.101
38+ info: BootstrapBlazor.Components.DefaultPdfService[0]
39+ Start your browser | Args: --no-sandbox, --disable-setuid-sandbox, --disable-web-security</Pre >
40+
41+ <p class =" code-quest" >2. 如何手动安装 <code >Debian</code > Linux 系统的 <code >Chrome</code > 浏览器</p >
42+ <Pre >wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
43+ sudo apt install ./google-chrome-stable_current_amd64.deb</Pre >
44+
45+ <p class =" code-quest" >3. 如何检查 <code >Debian</code > Linux 系统 <code >Chrome</code > 依赖缺失</p >
46+ <ul class =" ul-demo" >
47+ <li >检查是否可以连接到 Chrome 服务器</li >
48+ <li >检查服务器是否有执行安装包权限</li >
49+ <li >检查是否有依赖缺失</li >
50+ </ul >
51+
52+ <p class =" code-quest" >4. 部署后是否会反复下载 Chrome 安装包</p >
53+ <p class =" code-answer" >不会,Html2Pdf 会检查是否存在安装目录安装成功后即不会重复下载安装操作</p >
54+
2955<DemoBlock Title =" @Localizer[" Html2PdfElementTitle " ]" Introduction =" @Localizer[" Html2PdfElementIntro " ]" Name =" Normal" >
3056 <section ignore >
3157 <p >@( (MarkupString )Localizer [" Html2PdfElementDesc" ].Value ) </p >
You can’t perform that action at this time.
0 commit comments