# MdxConverter 输出PDF时报错及字体间距太小的解决方案

**URL:** <https://forum.freemdict.com/t/topic/25119>\
**Category:** 技术交流与词典编修\
**Tags:** 提取mdx, mdxconverter\
**Created:** [2023 年12 月 1 日 14:14 UTC](https://forum.freemdict.com/t/topic/25119 "2023-12-01T14:14:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2023 年12 月 1 日 15:14 UTC](https://forum.freemdict.com/t/topic/25119/2 "2023-12-01T15:14:08Z")

</div>

参考这里的指引：[求助：提取mdx词条转换为HTML/PDF - #53，来自 jns](https://forum.freemdict.com/t/topic/3886/53)

做了如下修订——添加加亮行，并将之后的一行注释掉——不会报错了！

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/3/6/362942c7aab463e9320ce426bddcaca30fadabff.png)

但输出的PDF文字间距太密依然还有待解决。

---

_[View the full topic](https://forum.freemdict.com/t/topic/25119)._
