F9y4ng / GreasyFork-Scripts

The open source code of this project is used for userscripts (油猴脚本) for desktop browsers, including Font Rendering (Customized) (字体渲染(自用脚本)- Font Rendering.user.js), and Search Engine Assistant (优雅的搜索引擎助手 - Google & Baidu Switcher.user.js), etc.
https://f9y4ng.github.io/GreasyFork-Scripts/
GNU General Public License v3.0
951 stars 46 forks source link

[发现错误] 飞书云文档PDF出现渲染问题 #145

Closed auniel closed 1 year ago

auniel commented 1 year ago

飞书云文档PDF出现渲染问题,排除以下域名并重新打开PDF仍有复现。https://lzwdulijtp.feishu.cn/

如图所示,PDF出现重影。 image

在油猴中关闭整个script后,问题消除。

F9y4ng commented 1 year ago

访问需要登录,能否提供测试账户?

Wym1ng commented 8 months ago

@F9y4ng 大佬,能否辛苦帮忙检查解决下这个问题呢,感谢🙏

飞书PDF测试文档 (无需登录): https://xsdzdmbarx.feishu.cn/docx/Dmk3dxqIko1FyJxonwpcGCsXnYc

F9y4ng commented 8 months ago

@F9y4ng 大佬,能否辛苦帮忙检查解决下这个问题呢,感谢🙏

飞书PDF测试文档 (无需登录): https://xsdzdmbarx.feishu.cn/docx/Dmk3dxqIko1FyJxonwpcGCsXnYc

@Wym1ng

文字重影问题

按以下步骤操作:

  1. 打开 https://internal-api-drive-stream.feishu.cn/space/api/box/stream/download/preview_tpl3/?tpl_id=pdf&version=2&mount_point=docx_file&updatePreviewTplSeed=1&secbase=https%3A%2F%2Fsecurity.feishu.cn%2Flink%2Fsafety&sl=1&source=docx_file#zoom=page-full (页面不会呈现任何内容)

  2. 打开字体渲染设置界面,在 排除渲染的HTML标签 中,追加 ,.textLayer *,保存为站点独享。

选取问题

  1. 打开 https://xsdzdmbarx.feishu.cn/file/DQabbRrfvoCpczxHqLWcM0L7nqf
  2. 打开字体渲染设置界面,关闭 字体描边 (即字体描边数值设置为0/OFF),保存为站点独享。

我个人不建议在这类工具型网站应用字体渲染脚本,由于会引起很多莫名其妙的问题,有些能折中解决,有些则解决不了。