-
Notifications
You must be signed in to change notification settings - Fork 182
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
Export的pdf与原始文档渲染不一致 #23
Comments
@zh-g 我查了一下,是 Typora 中的渲染的最大宽度和导出的 #write {
max-width: 690px;
margin: 0 auto;
padding: 20px 30px 100px;
} |
@blinkfox 多谢多谢。不过这样改的话,实际上是通过减小Typora的渲染宽度来达到一致,无论是书写还是输出PDF,每行的空间变得更捉襟见肘了。 这里 给出了一种方法,强行把PDF页面调整成A3大小,再控制内容的 最后我调来调去改成这样了,勉强达到目的。虽然正文和代码块都还有些微差异,但也能接受了。 @media print {
@page :left {
margin: 50pt -5pt;
}
@page :right {
margin: 50pt -5pt;
}
body {
font-size: 9pt;
}
table,
blockquote,
pre {
page-break-inside: avoid;
}
pre {
word-wrap: break-word;
}
} |
一般情况下,pdf都是A4大小吧 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export成pdf之后,一行能显示的内容比Typora自身渲染的一行要少,导致要做这些调整才能显得好看:
调整了
vue.css
里面@media print
部分的内容,把html font-size
改成12px
没有效果。不太确定是不是问题,如果不是就close掉,谢谢先。
The text was updated successfully, but these errors were encountered: