unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: Viewing PDFs as text?
Date: Wed, 12 Mar 2008 13:11:03 +0100	[thread overview]
Message-ID: <87iqzs5ei0.fsf@member.fsf.org> (raw)
In-Reply-To: <87k5k8bav9.fsf@member.fsf.org> (Tassilo Horn's message of "Wed,  12 Mar 2008 09:32:58 +0100")

Tassilo Horn <tassilo@member.fsf.org> writes:

>> 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.
>
> That would be the ideal behavior.  But looking at the code it seems
> quite hard to do, especially if you want to keep most/all of
> doc-view's features.
>
> What could be done was to open a separate buffer (in fundamental-mode)
> that displays the output of pdftotext.  I'll give that a try.

That's now in CVS.  With C-c C-t you can open a new buffer that shows
the text of the current document.  When d-v-m doesn't work this binding
will be mentioned.

Bye,
Tassilo




      parent reply	other threads:[~2008-03-12 12:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7599507d-11a4-4e93-974f-5d7aa924b152@e6g2000prf.googlegroups.com>
     [not found] ` <mailman.8684.1205189951.18990.help-gnu-emacs@gnu.org>
     [not found]   ` <m34pbeapui.fsf@tfkp07.physik.uni-erlangen.de>
     [not found]     ` <mailman.8699.1205221811.18990.help-gnu-emacs@gnu.org>
     [not found]       ` <m34pbd4d8q.fsf@tfkp07.physik.uni-erlangen.de>
2008-03-11 17:57         ` Viewing PDFs as text? Bastien
2008-03-11 20:51           ` Stefan Monnier
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 [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87iqzs5ei0.fsf@member.fsf.org \
    --to=tassilo@member.fsf.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).