all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Bastien <bzg@altern.org>
Cc: Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>,
	emacs developers <emacs-devel@gnu.org>
Subject: Re: Viewing PDFs as text?
Date: Tue, 11 Mar 2008 16:51:01 -0400	[thread overview]
Message-ID: <jwvfxuxhtny.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <871w6hxhx9.fsf@bzg.ath.cx> (Bastien's message of "Tue, 11 Mar 2008 17:57:22 +0000")

> When trying to view a PDF with in a tty, `doc-view-initiate-display'
> throws an error about missing support for image, png or other utilities.

> Maybe it would be better to display the output of pdftotext directly in
> a tty.  In X Window, the default behavior would be to display the image
> when images are supported, and to fall back on pdftotext when not.

> What do you think?

Sounds like a good idea, but the implementation doesn't seem
as obvious.  So... patches welcome,


        Stefan


> PS: See the request below by Roland.

> Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> writes:

>> Tassilo Horn <tassilo@member.fsf.org> writes:
>>> Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> writes:
>>> 
>>>> It would be nice if doc-view used a plain text format if emacs is
>>>> running in a tty. Or am I missing something?
>>> 
>>> No, I'll have a look if that's easy to do.  Til then you can use
>>> 
>>> ! pdftotext ? - RET
>>> 
>>> from within dired.
>> 
>> Of course, not all pdf files are such that pdftotext can give
>> meaningful results. Figures and, say, formulas in a file generated
>> with pdflatex will be screwed up. However, fairly often I need to
>> use a tty. Anything that helps me along that way is greatly
>> appreciated. For me, one of the big advantages of emacs is that it
>> allows me to get the most out of a plain old tty.

> -- 
> Bastien





  reply	other threads:[~2008-03-11 20:51 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-10 20:52 Viewing PDFs as text? Alan
2008-03-10 22:59 ` Peter Dyballa
     [not found] ` <mailman.8684.1205189951.18990.help-gnu-emacs@gnu.org>
2008-03-11  3:42   ` Roland Winkler
2008-03-11  7:45     ` Tassilo Horn
     [not found]     ` <mailman.8699.1205221811.18990.help-gnu-emacs@gnu.org>
2008-03-11 13:11       ` Roland Winkler
2008-03-11 17:57         ` Bastien
2008-03-11 20:51           ` Stefan Monnier [this message]
2008-03-12  8:32           ` Tassilo Horn
2008-03-12  9:54             ` Phil Jackson
2008-03-12 12:12               ` Tassilo Horn
2008-03-12 12:11             ` Tassilo Horn
2008-03-12 13:45         ` Tassilo Horn
2008-03-13  3:37           ` Bastien
2008-03-13  9:29             ` Tassilo Horn
2008-03-13 10:09               ` Bastien
2008-03-13 10:30                 ` Tassilo Horn
2008-03-13 18:32                   ` Tassilo Horn
2008-03-13 18:45                     ` Bastien Guerry
2008-03-13 11:49               ` Emacs 23 and msb.el Guy Durrieu
2008-11-06  6:36                 ` Emacs 23: strange character display Guy Durrieu
2008-11-06  7:48                   ` Paul R
2008-11-06 13:12                     ` Guy Durrieu
     [not found]         ` <mailman.8756.1205329519.18990.help-gnu-emacs@gnu.org>
2008-03-12 15:38           ` Viewing PDFs as text? Roland Winkler
2008-03-18 22:47             ` Roland Winkler
2008-03-19 10:09               ` Tassilo Horn
2008-03-19 14:48                 ` Roland Winkler
2008-03-19 21:08                   ` Tassilo Horn
     [not found]                   ` <mailman.9221.1205960921.18990.help-gnu-emacs@gnu.org>
2008-03-19 23:54                     ` Roland Winkler
2008-03-20 20:25                       ` Tassilo Horn
2009-01-26  0:05                 ` Roland Winkler
     [not found]                   ` <87eiyqpjg1.fsf@thinkpad.tsdh.de>
2009-01-26 19:14                     ` Samuel Wales
2009-01-26 19:48                       ` Tassilo Horn
2009-01-26 19:52                         ` Samuel Wales
2009-01-26 20:37                           ` Tassilo Horn
2009-01-26 20:47                             ` Samuel Wales
2009-01-27  9:11                               ` Tassilo Horn
2009-01-26 22:28                             ` Roland Winkler
2009-01-27  9:33                               ` Tassilo Horn
2009-01-26 22:28                         ` Drew Adams
2009-01-27  9:10                           ` Tassilo Horn
2008-03-11  7:43 ` Tassilo Horn
2008-03-11  8:07 ` Tim X
2008-03-20  6:19   ` Alan
2008-03-20  8:50     ` Tim X

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvfxuxhtny.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=Roland.Winkler@physik.uni-erlangen.de \
    --cc=bzg@altern.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.