-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
PDF text layer misalignment #9600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
打开pdf文件时,默认背景用白色,提供一个反相按钮,让用户自己决定是否要反相比较好 |
这个特殊的文件可以发我一下么,谢谢。 PDF 的明亮和暗黑默认是根据当前主题的模式来的。 |
UOBDs_SpeakingFinal-20231107180449-tjsoudi.pdf PDF 的明亮和暗黑默认是根据当前主题的模式来的。理论上没问题,但是不应该对图片进行反相,图片会相当难看,还得手动改用明亮模式。另外,对于背景透明的png图片来说,不管是否反相都不会完美。所以我还是建议pdf不默认跟随app的明亮模式或暗黑模式,应该显式地在pdf内容上方的操作按钮栏显式明显的按钮,让使用暗黑主题的用户自己决定,或者在设置里面添加个选项。而不是直接修改图片本身的色相。 |
可以重现,下个版本修复。 主题的话只要调整后,下一次都会使用上一次的调整。目前 PDF 深色主题还没有更好的处理办法,如果有的话按照现在的逻辑会比较好一点。等有空可以看看 pdf.js 对深色主题的支持。 |
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
使用默认深色主题,打开pdf文件,有两个问题:

第一个问题,有的文件会出现错位,具体元素是
textLayer
:第二个问题,该文件背景应该是白色的,看起来应该是反相了,对于图片来说是毁灭性的,例如:

而原图应该是:

Expected result
Version environment
Log file
More information
No response
The text was updated successfully, but these errors were encountered: