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 书签大纲 #779

Closed
xulei-shl opened this issue Dec 18, 2020 · 9 comments
Closed

导出 PDF 书签大纲 #779

xulei-shl opened this issue Dec 18, 2020 · 9 comments
Assignees
Labels
Milestone

Comments

@xulei-shl
Copy link

导出PDF,目录无法点击跳转

希望如果md有目录,在导出pdf时保留目录的点击跳转

@88250
Copy link
Member

88250 commented Dec 19, 2020

收到,后续试着调整看看,谢谢。

@88250 88250 changed the title 导出PDF,目录无法点击跳转 导出 PDF 支持目录点击跳转 Dec 19, 2020
@88250 88250 changed the title 导出 PDF 支持目录点击跳转 导出的 PDF 支持目录点击跳转 Dec 19, 2020
@roverway
Copy link

roverway commented Jun 29, 2021

https://www.jianshu.com/p/722b56b4c5c7

我验证过了,这个方法导出的效果很好。
不知道这个小功能点是否可以提前安排?
@88250

@88250
Copy link
Member

88250 commented Jun 29, 2021

@roverway 提前不了……

@88250 88250 added the Feature label Sep 4, 2021
@88250 88250 added this to the 1.3.5 milestone Sep 4, 2021
@88250 88250 changed the title 导出的 PDF 支持目录点击跳转 支持导出 PDF 目录跳转 Sep 4, 2021
@88250
Copy link
Member

88250 commented Sep 6, 2021

@roverway 刚刚试了下,使用思源导出 HTML 再通过 wkhtmltopdf 转换 PDF 可以带书签,但是整体效果不大好。估计还是只能加个 ToC 在顶部,书签搞不定。

@roverway
Copy link

roverway commented Sep 9, 2021

@roverway 刚刚试了下,使用思源导出 HTML 再通过 wkhtmltopdf 转换 PDF 可以带书签,但是整体效果不大好。估计还是只能加个 ToC 在顶部,书签搞不定。

我之前尝试过把思源笔记导出的民法典html版本用这个转成pdf,感觉还不错。
不过民法典样式比较简单,只有标题和段落,我没尝试其他格式复杂的html文件,不知道导出效果怎么样。
你是尝试了复杂样式的html了吗?

@88250
Copy link
Member

88250 commented Sep 9, 2021

我试了较为绚丽多彩的例子

image

我们找到其他方案了,正在开发。

@88250 88250 changed the title 支持导出 PDF 目录跳转 支持导出 PDF 书签目录 Sep 9, 2021
@88250 88250 changed the title 支持导出 PDF 书签目录 支持导出 PDF 书签大纲 Sep 10, 2021
@88250 88250 closed this as completed Sep 10, 2021
@88250 88250 changed the title 支持导出 PDF 书签大纲 导出 PDF 书签大纲 Sep 10, 2021
@aibudanxing
Copy link

您好,请问具体怎么操作呢,现在不支持用TOC,导出为pdf时怎么根据标题生成目录呢

@88250
Copy link
Member

88250 commented Nov 2, 2022

您好,请问具体怎么操作呢,现在不支持用TOC,导出为pdf时怎么根据标题生成目录呢

直接导出即可,文档内的大纲会自动转换为 PDF 书签。

@aibudanxing
Copy link

好的,十分感谢!

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

No branches or pull requests

5 participants