[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing pdf files with doc-view. Possible?

From: Tassilo Horn
Subject: Re: Showing pdf files with doc-view. Possible?
Date: Thu, 22 Apr 2010 17:37:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Vagn Johansen <> writes:

Hi Vagn,

> Does anyone know if it is possible to use doc-view(*) mode with gnus?

I know that! ;-)

It's not possible to inline the PDF images, but as a workaround you
could write your own command that saves the pdf part in a temp file and
opens that with emacs.

This is not tested, but might work:

--8<---------------cut here---------------start------------->8---
(defun th-gnus-mime-view-internally ()
  (let ((data (get-text-property (point) 'gnus-data)))
    (when data
      (let ((f (make-temp-file "mime-part" nil ".pdf")))
        (mm-save-part-to-file data f)
        (find-file f)))))
--8<---------------cut here---------------end--------------->8---

Bind it to some nice key in `gnus-article-mode-map' and have fun.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]