Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#7222·MaxKB

[Bug] 导出对话为pdf异常

Author: liuda203Created Sep 30, 2026Updated Sep 30, 2026
LabelsType: Bug

Contact Information

No response

MaxKB Version

v2.10.6-pro

Problem Description

对话记录导出 PDF 时 html-to-image 只能截到外层 iframe 占位框,截不到 iframe 内部文档,导致导出为pdf显示异常空白。(预览和下载后再打开都是空白)

ImageImage

Steps to Reproduce

在<html_rander>标签中按以下格式使用均可复现。可以将以下内容粘贴到指定回复节点复现: 测试一: ` <html_rander>

资产明细(共 2 条)
编码资产名称规格型号资产状态使用部门责任人存放地点
123456台式机test在用数字化管理admin
123456服务器123在用数字化管理admin部门1
` 测试二: `

【测试用 HTML 回复】

测试二。

  • 项目名称:数字化系统
  • 工单号:WO-20260330-001
  • 状态:处理中
下面再用 iframe_render 测一次:
【iframe_render 区块】

这段同样在独立 iframe 中,导出预览里也应表现为空白框。

` ### The expected correct result

No response

Related log output

bash

Additional Information

No response

Source: 1Panel-dev/MaxKB

View original on GitHubView discussion on GitHub