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图片显示不了 #3873

Closed
hahahni opened this issue May 10, 2022 · 2 comments
Closed

知乎导出pdf图片显示不了 #3873

hahahni opened this issue May 10, 2022 · 2 comments

Comments

@hahahni
Copy link

hahahni commented May 10, 2022

请说明发生问题的环境

简悦包含了很多平台的版本,所以为了方便定位,建议告诉我一些必要信息

  • 操作系统 e.g. Windows MacOS

  • 浏览器版本 e.g. Chrome 78.0.3904.108

  • 简悦版本 2.0.0
    1.0.1

  • 发生问题的地址 <请填写你的地址l>
    https://zhuanlan.zhihu.com/p/359503603
    请描述你的问题
    知乎导出pdf图片显示不了

请使用可以 准确定位到错误 的语句来告诉我。😀

截图
屏幕截图 2022-05-10 224853

一图胜千言,所以方便的话,可以试着贴图。

@Kenshin
Copy link
Owner

Kenshin commented May 11, 2022

请使用 #2861 提到的解决方案,再试试。

@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