Skip to content
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

Improve PDF exporting #11258

Closed
3 tasks done
entps opened this issue May 5, 2024 · 31 comments
Closed
3 tasks done

Improve PDF exporting #11258

entps opened this issue May 5, 2024 · 31 comments
Assignees
Milestone

Comments

@entps
Copy link

entps commented May 5, 2024

macOS版本导出PDF时首页总是空白页,同一文档在Windows版本中导出PDF正常

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

macOS版本导出PDF时首页总是空白页,同一文档在Windows版本中导出PDF正常

Expected result

macOS版本导出PDF时首页总是空白页,同一文档在Windows版本中导出PDF正常

Screenshot or screen recording presentation

No response

Version environment

- Version: 
- Operating System: 
- Browser (if used):

Log file

macOS版本导出PDF时首页总是空白页,同一文档在Windows版本中导出PDF正常

More information

No response

@TCOTC
Copy link
Contributor

TCOTC commented May 5, 2024

可以补充一下使用的思源版本号

@entps
Copy link
Author

entps commented May 5, 2024

当前版本 v3.0.12

@88250
Copy link
Member

88250 commented May 5, 2024

请将能够重现问题的文档导出 .sy.zip 发给我们测试看看 845765@qq.com

@entps
Copy link
Author

entps commented May 5, 2024

已发邮件

@88250
Copy link
Member

88250 commented May 5, 2024

你好,已经收到测试数据集,我们在 macOS 上测试导出 PDF 正常,首页没有空白。

请在默认主题并且关闭代码片段等扩展后再测试看看。

@entps
Copy link
Author

entps commented May 5, 2024 via email

@entps
Copy link
Author

entps commented May 5, 2024 via email

@88250
Copy link
Member

88250 commented May 5, 2024

在新工作空间中导入测试看看?

@entps
Copy link
Author

entps commented May 5, 2024 via email

@entps
Copy link
Author

entps commented May 5, 2024 via email

@entps
Copy link
Author

entps commented May 5, 2024 via email

@88250
Copy link
Member

88250 commented May 5, 2024

估计还是有什么插件或者扩展影响了,关闭所有扩展以后重启后再试试?

@entps
Copy link
Author

entps commented May 5, 2024 via email

@88250
Copy link
Member

88250 commented May 6, 2024

试下删除 用户家目录/.config/siyuan/windowState.json 后再启动测试。

@entps
Copy link
Author

entps commented May 6, 2024 via email

@88250
Copy link
Member

88250 commented May 6, 2024

收到,那可能是某个配置引起的问题,现在是否能帮忙 diff 一下两个文件的差异?

@entps
Copy link
Author

entps commented May 6, 2024 via email

@88250
Copy link
Member

88250 commented May 6, 2024 via email

@entps
Copy link
Author

entps commented May 6, 2024 via email

@88250
Copy link
Member

88250 commented May 6, 2024

我邮箱 845765@qq.com

@entps
Copy link
Author

entps commented May 6, 2024 via email

@88250
Copy link
Member

88250 commented May 6, 2024

收到,谢谢。

@88250
Copy link
Member

88250 commented May 6, 2024

定位到问题了,是因为 设置 - 编辑器 中选择了等宽字体,选择等宽字体的话会出现这个问题。

这个应该是上游 electron 的 bug,后续我们会留意,谢谢。

@88250 88250 closed this as completed May 6, 2024
@zxhd863943427
Copy link
Contributor

在3.14上可复现该问题,并且可在新工作空间复现。文档已上传:
test.sy.zip

并且同时存在两个问题,首页空白和最后一页存在滚动条:

图片

@88250
Copy link
Member

88250 commented May 16, 2024

@Vanessa219 有空看看

@Vanessa219
Copy link
Member

使用 Mac ,还是没有办法重现

QQ20240517-084145-HD.mp4

@zxhd863943427
Copy link
Contributor

那奇怪了,我这里的平台是windows10,之后我再看看吧。

@TCOTC
Copy link
Contributor

TCOTC commented Jun 4, 2024

两个问题都碰到了:https://ld246.com/article/1717488272178

image

@88250 88250 changed the title macOS版本导出PDF时首页总是空白页,同一文档在Windows版本中导出PDF正常 导出 PDF 时第一页空白 Jun 4, 2024
@88250 88250 reopened this Jun 4, 2024
Vanessa219 added a commit that referenced this issue Jun 5, 2024
@88250 88250 added this to the 3.1.0 milestone Jun 5, 2024
@88250 88250 changed the title 导出 PDF 时第一页空白 Improve PDF exporting Jun 5, 2024
copialot pushed a commit to copialot/siyuan that referenced this issue Aug 3, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Oct 4, 2024

@Vanessa219
Copy link
Member

这个可以重现么?

@TCOTC
Copy link
Contributor

TCOTC commented Oct 15, 2024

我这边重现不了

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

No branches or pull requests

5 participants