### 描述问题 Describe the problem <!-- 导出PDF文件时,只导出HTML,但是Markdown可以正常导出 --> ### 期待的结果 Expected result <!-- 能够正常导出PDF --> ### 截屏或者录屏演示 Screenshot or screen recording presentation    <!-- 请通过截屏或者录屏演示你碰到的问题。 Please try to attach screenshots or videos to describe the problem you are experiencing. (It is recommended to use [Screen2Gif](https://www.screentogif.com/) to record the screen under Windows. If it is related to the editor input, please open the `Image - Key Strokes` after recording with Screen2Gif) --> ### 版本环境 Version environment * Version: 1.5.4 * Operating system: ubuntu 20.04 * Browser (if used): ### 日志文件 Log File <!-- 请提供内核日志:工作空间/temp/siyuan.log The program log file is located at: workspace/temp/siyuan.log siyuan cat /temp/siyuan.log cat: /temp/siyuan.log: 没有那个文件或目录 --> ### 更多信息 More information <!-- 请提供任何附加信息,以帮助我们更好地定位问题。 Please provide other additional information to help us diagnose the problem. -->
Activity
88250 commentedon Dec 21, 2021
请上传一下日志文件。
miderxi commentedon Dec 21, 2021
miderxi commentedon Dec 21, 2021
/tmp文件夹下无日志文件
88250 commentedon Dec 21, 2021
在 工作空间/temp/siyuan.log
miderxi commentedon Dec 21, 2021
(base) ➜ ~ cat /temp/siyuan.log
cat: /temp/siyuan.log: 没有那个文件或目录
(base) ➜ ~
也找不到
[-]无法导出PDF[/-][+]Linux 上无法导出 PDF[/+]88250 commentedon Dec 21, 2021
在工作空间文件夹下面,工作空间路径可以在 设置 - 关于 里查看。
88250 commentedon Dec 21, 2021
请升级到 v1.5.4 以后重启看看。
miderxi commentedon Dec 21, 2021
期间我试过好几个版本,大概有
1.4.6
1.4.8
1.5.3,
1.5.4
miderxi commentedon Dec 21, 2021
好,我重新试试
miderxi commentedon Dec 21, 2021
(base) ➜ ~ cat /home/x/Documents/SiYuan/temp/siyuan.log
I 2021/12/21 18:23:35 conf.go:359: exited kernel
I 2021/12/21 18:23:42 working.go:95:
___ ___ ___ ___
/ /\ ___ ___ //\ / /\ //
/ /:/_ / /\ //| \ :\ / /::\ \ :
/ /:/ /\ / /:/ | |:| \ :\ / /:/:\ \ :
/ /:/ /::\ //::\ | |:| ___ \ :\ / /:/
/::\ __:/:/ \ :/\ //::::\ \ :\ / /:/ \ :/:// \ :~//:/ /:/:\ _/:_ ||:| //\ __:\ //:/ /:/:\ /_/::::::::
\ :/:/
~/\ ::/ /:/ _::/
~:\ \ :\ /:/ \ ::/ \ :\ ~~~_/ /:/ //:/ \ :\ \ :/:/ \ :\ \ :
//:/ _/ _/ \ ::/ \ :\ \ :
_/ _/ _/ _/
I 2021/12/21 18:23:42 runtime.go:57: kernel is booting:
* ver [1.5.4]
* arch [amd64]
* runtime mode [prod]
* working directory [/tmp/.mount_siyuanoOovBF/resources]
* read only [false]
* container [std]
* database [ver=20211124]
* workspace directory [/home/x/Documents/SiYuan, data 28 MB]
* rsync [version 3.1.3 protocol version 31]
* pandoc [pandoc 2.13]
I 2021/12/21 18:23:42 conf.go:257: local serve path [http://10.2.43.28:6806]
I 2021/12/21 18:23:42 serve.go:68: kernel is booting [http://127.0.0.1:6806]
I 2021/12/21 18:23:42 database.go:140: initialized database tables
I 2021/12/21 18:23:42 database.go:94: reinitialized database [/home/x/Documents/SiYuan/temp/siyuan.db]
I 2021/12/21 18:23:42 conf.go:507: pre-init database size [66 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211030172718-whcl8l5] in [0.05s], tree stat [count=11, size=188 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211025163721-x8zwfqp] in [0.01s], tree stat [count=7, size=71 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211203151625-uw4f7or] in [0.01s], tree stat [count=8, size=136 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211205164039-cwzk9rl] in [0.01s], tree stat [count=7, size=43 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211025170349-65karoa] in [0.05s], tree stat [count=10, size=320 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211110194349-wu5yw48] in [0.03s], tree stat [count=4, size=352 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211031184104-55aa6yn] in [0.04s], tree stat [count=5, size=59 kB]
I 2021/12/21 18:23:42 conf.go:523: post-init database size [1.3 MB], tree stat [count=52, size=1.2 MB]
I 2021/12/21 18:23:43 working.go:113: kernel booted
miderxi commentedon Dec 21, 2021
你看出什么问题了吗
88250 commentedon Dec 21, 2021
日志上看暂时没有发现导出 PDF 报错记录。
从之前你发的截图看,好像已经导出文件了?

miderxi commentedon Dec 21, 2021
我把旧的日志删了
miderxi commentedon Dec 21, 2021
(base) ➜ ~ cat /home/x/Documents/SiYuan/temp/siyuan.log
I 2021/12/21 18:23:35 conf.go:359: exited kernel
I 2021/12/21 18:23:42 working.go:95:
___ ___ ___ ___
/ /\ ___ ___ //\ / /\ //
/ /:/_ / /\ //| \ :\ / /::\ \ :
/ /:/ /\ / /:/ | |:| \ :\ / /:/:\ \ :
/ /:/ /::\ //::\ | |:| ___ \ :\ / /:/
/::\ __:/:/ \ :/\ //::::\ \ :\ / /:/ \ :/:// \ :~//:/ /:/:\ _/:_ ||:| //\ __:\ //:/ /:/:\ /_/::::::::
\ :/:/
~/\ ::/ /:/ _::/
~:\ \ :\ /:/ \ ::/ \ :\ ~~~_/ /:/ //:/ \ :\ \ :/:/ \ :\ \ :
//:/ _/ _/ \ ::/ \ :\ \ :
_/ _/ _/ _/
I 2021/12/21 18:23:42 runtime.go:57: kernel is booting:
* ver [1.5.4]
* arch [amd64]
* runtime mode [prod]
* working directory [/tmp/.mount_siyuanoOovBF/resources]
* read only [false]
* container [std]
* database [ver=20211124]
* workspace directory [/home/x/Documents/SiYuan, data 28 MB]
* rsync [version 3.1.3 protocol version 31]
* pandoc [pandoc 2.13]
I 2021/12/21 18:23:42 conf.go:257: local serve path [http://10.2.43.28:6806]
I 2021/12/21 18:23:42 serve.go:68: kernel is booting [http://127.0.0.1:6806]
I 2021/12/21 18:23:42 database.go:140: initialized database tables
I 2021/12/21 18:23:42 database.go:94: reinitialized database [/home/x/Documents/SiYuan/temp/siyuan.db]
I 2021/12/21 18:23:42 conf.go:507: pre-init database size [66 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211030172718-whcl8l5] in [0.05s], tree stat [count=11, size=188 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211025163721-x8zwfqp] in [0.01s], tree stat [count=7, size=71 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211203151625-uw4f7or] in [0.01s], tree stat [count=8, size=136 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211205164039-cwzk9rl] in [0.01s], tree stat [count=7, size=43 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211025170349-65karoa] in [0.05s], tree stat [count=10, size=320 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211110194349-wu5yw48] in [0.03s], tree stat [count=4, size=352 kB]
I 2021/12/21 18:23:42 index.go:416: rebuilt database for notebook [20211031184104-55aa6yn] in [0.04s], tree stat [count=5, size=59 kB]
I 2021/12/21 18:23:42 conf.go:523: post-init database size [1.3 MB], tree stat [count=52, size=1.2 MB]
I 2021/12/21 18:23:43 working.go:113: kernel booted
4 remaining items
miderxi commentedon Dec 21, 2021
还有一个,我尝试导出markdown的时候,直接打开https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax这个网址,而不是导出文件
miderxi commentedon Dec 21, 2021
好吧,我用windows看看
88250 commentedon Dec 21, 2021
导出 Markdown 以后是个 zip 包,目前是直接打开浏览器下载的。
Clouder0 commentedon Dec 22, 2021
尝试手动指定后缀名,如
科学问题.pdf
choyy commentedon Dec 22, 2021
确实有这个问题,导出pdf实际导出的却是HTML文件,是不是和导出HTML搞混了(。・_・。)
miderxi commentedon Dec 22, 2021
哈哈哈,nevermind,开发软件真不容易,一想到debug就脑壳疼。
miderxi commentedon Dec 22, 2021
谢谢解答
Clouder0 commentedon Dec 22, 2021
https://ld246.com/article/1635504064965/comment/1635555896630
88250 commentedon Jan 13, 2022
这个问题会在 v1.7.1 进行改进,但不确定是否能解决,发布以后请大家帮忙测试反馈,谢谢。
miderxi commentedon Jan 13, 2022