Skip to content

[Bug] 导出对话为pdf异常 #7222

Description

@liuda203

Contact Information

No response

MaxKB Version

v2.10.6-pro

Problem Description

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

Image Image

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

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions