Pdf 如何在emacs-nw中使用文档视图?

Pdf 如何在emacs-nw中使用文档视图?,pdf,emacs,docview,Pdf,Emacs,Docview,假设我想在emacs中打开pdf文件。在EmacsGUI中使用C-xC-f非常简单。但是当我在emacs-nw中使用它时。它显示代码而不是文档。我该怎么做?谢谢。如果您只想以文本形式阅读pdf,可以使用pdf2txt和以下功能对其进行点画: (defun open-pdf-in-txt (arg) (interactive "fpdf: ") (shell-command (format (concat "pdftotext " (replace-regexp-in-s

假设我想在emacs中打开pdf文件。在EmacsGUI中使用C-xC-f非常简单。但是当我在emacs-nw中使用它时。它显示代码而不是文档。我该怎么做?谢谢。

如果您只想以文本形式阅读pdf,可以使用pdf2txt和以下功能对其进行点画:

(defun open-pdf-in-txt (arg)
    (interactive "fpdf: ")
    (shell-command
     (format (concat "pdftotext " (replace-regexp-in-string " " "?\ " arg) " -layout")))
    (find-file (replace-regexp-in-string "pdf" "txt" arg)))

嗯…你认为会发生什么?基于文本的终端将如何显示PNG图像?@Chris,你是说这是不可能的?如果你使用的是传统的纯文本终端,并且希望以图形方式查看页面,是的,这是不可能的。你见过终端上显示的图像吗?