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

导出PDF,代码超长会截取 #2243

Closed
szxypi opened this issue May 24, 2021 · 5 comments
Closed

导出PDF,代码超长会截取 #2243

szxypi opened this issue May 24, 2021 · 5 comments

Comments

@szxypi
Copy link

szxypi commented May 24, 2021

这是导出pdf截图
image
这是解析的网页截图
image

网页宽度可能和pdf不一样,pdf代码被截断了,希望自动换行显示

@Kenshin
Copy link
Owner

Kenshin commented May 24, 2021

emmm... 确实存在这个情况。

我先记录下,看看后续如何优化。

@Kenshin
Copy link
Owner

Kenshin commented May 24, 2021

抱歉,因为这次 Webstore 审核的超级快,导致 2.2.0 相关的内容没有匹配,所以这两天会超级忙,因为 Github Issues 的机制导致有可能 无法看到置顶信息,所以我暂时把这个 issues 先做了关闭处理,等这个 Issues 完毕后,会恢复它。

@Kenshin Kenshin closed this as completed May 24, 2021
@Kenshin
Copy link
Owner

Kenshin commented May 25, 2021

嗨,简悦 2.2.0.520 已经发布,已重新开启此 Issues

一个建议

如条件允许,请一定要订阅 简悦的发布渠道这里通知中心

简悦会在每个大版本发布或不定期会推送简悦的相关信息,也请订阅 Newsletter

@Kenshin Kenshin reopened this May 25, 2021
@Kenshin
Copy link
Owner

Kenshin commented May 25, 2021

@Kenshin Kenshin added the done label May 18, 2022
@Kenshin
Copy link
Owner

Kenshin commented Jun 10, 2022

嗨,各位,更强大的 PDF 导出方案来了,此 Issues 的问题都可以使用此方式解决。

pdf

下载地址

https://simpread.ksria.cn/plugins/details/Lly3mkuSPz

演示

百度网盘

使用前提

  1. 这是同步助手 1.0.2 版对应的功能,如果想要使用它,需要安装 1.0.2 版的同步助手,详细说明可以 看这里

  2. 使用 wkhtmltopdf 来增强导出 PDF 的定制化功能,因此也需要安装 wkhtmltopdf,安装很简单但需要留意 注意事项

名词解释

  • 1.0.1 版 PDF 方案称为:同步助手基础打印方案

  • 1.0.2 版 PDF 方案称为:同步助手高级打印方案

优势

  1. 可根据当前阅读模式的 主题、字体样式、字体大小 生成 PDF

  2. 支持 自定义字体 · 自定义样式

  3. 支持 更细致的打印,如页边距、打印尺寸

  4. 自带目录

  5. 完美解决因图片防盗链无法成功打印的问题

劣势

  1. 无法在稍后读使用
  2. 需要安装 wkhtmltopdf
  3. 标注支持度有限,详细说明 请看这里

注意

  1. Windows 11 用户不要将 wkhtmltopdf 安装在默认盘和默认目录,这会出现权限问题导致无法使用。

  2. 如果将 wkhtmltopdf 安装在非默认目录,需要手动设置它的 运行目录

附录

以下是自定义导出 PDF 的一些截图

image

image

image


我关闭这个 Issues 了,有任何问题,仍可随时在这里讨论。😄

@Kenshin Kenshin closed this as completed Jun 10, 2022
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

2 participants