使用wkhtmltopdf导出pdf时,代码块遇分页时出现问题
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13k
- Forks
- 1.3k
- Avg merge
- 14h 3m
- Merged PRs (30d)
- 3
Description
OS Version (操作系统): Windows, Linux, macOS
windows
VNote Version (Help - About VNote - Version: )(VNote版本): 2.2, d78e892d5cc etc..
2.7.2
Symptoms (表现):

输出日志:
导出到 D:/Documents/vnote_exports 。
使用wkhtmltopdf (0)。
正在导出笔记 D:/Documents/vnote_notebooks/vnotebook/mfc/mfc.md 。
wkhtmltopdf --page-size A4 --orientation Portrait --margin-bottom 10mm --margin-left 10mm --margin-right 10mm --margin-top 16mm --encoding utf-8 --background --javascript-delay 10000 toc --toc-text-size-shrink 1.0 Z:\TEMP\VNote-9jMXMN\vnote_tmp.html D:\Documents\vnote_exports\mfc_001.pdf
......
笔记 D:/Documents/vnote_notebooks/vnotebook/mfc/mfc.md 导出为 D:/Documents/vnote_exports/mfc_001.pdf 。
导出了 1 个笔记。
PDF效果图:

How to Repro (如何复现):
使用wkhtmltopdf方式导出pdf格式,如最上图所示
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the wkhtmltopdf PDF-export path and the temporary HTML generated from the reported mfc.md note. Reproduce the export using the command shown in the log, then inspect how code blocks are handled at page boundaries. Done means code blocks render correctly instead of breaking incorrectly across PDF pages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown
- Domain
- content
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100