When I open pdf with emacs, it got frozen. And I installed pdf-tools, open pdf, it got frozen again.
What's the underlining process when emacs open a pdf? Is there a lot of converting work? What should I do to speed it up?
- Emacs 24.4
- Ubuntu 14.04 LTS
- Intel 2.4GHz x 2
- 4G RAM.
I just found this page:
"learnt a lesson. Never open a pdf in emacs. Never even do it accidentally."
It's a sad news to me! Isn't it a great idea to view pdf using Emacs?
I thought it was because my pdf file is too large:
5.7M, 1313 pages
So I tried a small pdf file,
402K, 66 pages
it got frozen again.
I open pdf file using
C-c C-x from
helm, and it opens the pdf file in an external viewer: zathura. Since there is no converting process, the file opens lighting fast. (As fast as
mupdf. I guess zathura using mupdf as its back end.)
There are four points makes zathura outstanding:
- Lighting fast. (Both open and search)
- High quality display.
- Tab displays the chapter/section menu just like Adobe Reader.
- Good keyboard shortcuts support. (Actually, it uses vim-style keybinding, which make sense since there is no need to switch mode in pdf viewer.
Screen shot for quality comparasion:
I really got confused what Emacs uses for open PDF. (I've already removed pdf-tools)