在 Pandoc 中将 docx 转换为 pdf 时如何保持样式?
How do you keep the styling when you convert docx to pdf in Pandoc?
我正在使用 pandoc 将 docx 文件转换为 pdf。
我用于转换的命令:
pandoc -o document.pdf document.docx
问题是转换后,样式消失了。
如您所见,颜色丢失,我的 table 的位置向右移动
Pandoc 不转换 styles/layout/formatting。
来自https://pandoc.org/MANUAL.html:
Because pandoc’s intermediate representation of a document is less expressive than many of the formats it converts between, one should not expect perfect conversions between every format and every other. Pandoc attempts to preserve the structural elements of a document, but not formatting details such as margin size.
我正在使用 pandoc 将 docx 文件转换为 pdf。 我用于转换的命令:
pandoc -o document.pdf document.docx
问题是转换后,样式消失了。
如您所见,颜色丢失,我的 table 的位置向右移动
Pandoc 不转换 styles/layout/formatting。
来自https://pandoc.org/MANUAL.html:
Because pandoc’s intermediate representation of a document is less expressive than many of the formats it converts between, one should not expect perfect conversions between every format and every other. Pandoc attempts to preserve the structural elements of a document, but not formatting details such as margin size.