将不受信任的 HTML/CSS 转换为 PDF,通常运行在需要处理来自多个租户输入数据的服务器上。在 0.19.0 之前的版本中,如果 body 的直接子元素的 CSS 解析后高度远远超过页面高度,该元素会被切片为每一页一个片段,且没有上限。此问题已在 0.19.0 中修复。通过引入 上限来限制切片循环——即使高度为 也能终止循环——同时,非有限的布局高度会被清洗(sanitized),从而不再驱动该循环。作为临时解决方案,在将 HTML 传递给 fulgur 之前,应对不受信任的 CSS(特别是 body 级别元
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet