Skip to content

Linux 上无法导出 PDF #3635

Closed
Closed
@miderxi

Description

@miderxi

描述问题 Describe the problem

期待的结果 Expected result

截屏或者录屏演示 Screenshot or screen recording presentation

1
2
3

版本环境 Version environment

  • Version: 1.5.4
  • Operating system: ubuntu 20.04
  • Browser (if used):

日志文件 Log File

更多信息 More information

Activity

88250

88250 commented on Dec 21, 2021

@88250
Member

请上传一下日志文件。

miderxi

miderxi commented on Dec 21, 2021

@miderxi
Author
miderxi

miderxi commented on Dec 21, 2021

@miderxi
Author

/tmp文件夹下无日志文件

88250

88250 commented on Dec 21, 2021

@88250
Member

在 工作空间/temp/siyuan.log

miderxi

miderxi commented on Dec 21, 2021

@miderxi
Author

(base) ➜ ~ cat /temp/siyuan.log
cat: /temp/siyuan.log: 没有那个文件或目录
(base) ➜ ~
也找不到

changed the title [-]无法导出PDF[/-] [+]Linux 上无法导出 PDF[/+] on Dec 21, 2021
88250

88250 commented on Dec 21, 2021

@88250
Member

在工作空间文件夹下面,工作空间路径可以在 设置 - 关于 里查看。

88250

88250 commented on Dec 21, 2021

@88250
Member

请升级到 v1.5.4 以后重启看看。

miderxi

miderxi commented on Dec 21, 2021

@miderxi
Author

期间我试过好几个版本,大概有
1.4.6
1.4.8
1.5.3,
1.5.4

miderxi

miderxi commented on Dec 21, 2021

@miderxi
Author

好,我重新试试

miderxi

miderxi commented on Dec 21, 2021

@miderxi
Author

(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

miderxi commented on Dec 21, 2021

@miderxi
Author

你看出什么问题了吗

88250

88250 commented on Dec 21, 2021

@88250
Member

日志上看暂时没有发现导出 PDF 报错记录。

从之前你发的截图看,好像已经导出文件了?
image

miderxi

miderxi commented on Dec 21, 2021

@miderxi
Author

我把旧的日志删了

miderxi

miderxi commented on Dec 21, 2021

@miderxi
Author

(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

miderxi commented on Dec 21, 2021

@miderxi
Author

好吧,我用windows看看

88250

88250 commented on Dec 21, 2021

@88250
Member

还有一个,我尝试导出markdown的时候,直接打开https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax这个网址,而不是导出文件

导出 Markdown 以后是个 zip 包,目前是直接打开浏览器下载的。

Clouder0

Clouder0 commented on Dec 22, 2021

@Clouder0
Member

尝试手动指定后缀名,如 科学问题.pdf

choyy

choyy commented on Dec 22, 2021

@choyy

确实有这个问题,导出pdf实际导出的却是HTML文件,是不是和导出HTML搞混了(。・_・。)

miderxi

miderxi commented on Dec 22, 2021

@miderxi
Author

哈哈哈,nevermind,开发软件真不容易,一想到debug就脑壳疼。

miderxi

miderxi commented on Dec 22, 2021

@miderxi
Author

还有一个,我尝试导出markdown的时候,直接打开https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax这个网址,而不是导出文件

导出 Markdown 以后是个 zip 包,目前是直接打开浏览器下载的。

谢谢解答

Clouder0

Clouder0 commented on Dec 22, 2021

@Clouder0
Member

尝试手动指定后缀名,如 科学问题.pdf

https://ld246.com/article/1635504064965/comment/1635555896630

added this to the 1.7.1 milestone on Jan 13, 2022
88250

88250 commented on Jan 13, 2022

@88250
Member

这个问题会在 v1.7.1 进行改进,但不确定是否能解决,发布以后请大家帮忙测试反馈,谢谢。

miderxi

miderxi commented on Jan 13, 2022

@miderxi
Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@miderxi@Clouder0@choyy

      Issue actions

        Linux 上无法导出 PDF · Issue #3635 · siyuan-note/siyuan