From: Bastien <bzg@altern.org>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Viewing PDFs as text?
Date: Thu, 13 Mar 2008 03:37:48 +0000 [thread overview]
Message-ID: <87od9jgupf.fsf@bzg.ath.cx> (raw)
In-Reply-To: <8763vs5a5c.fsf@member.fsf.org> (Tassilo Horn's message of "Wed, 12 Mar 2008 14:45:03 +0100")
Hi Tassilo,
Tassilo Horn <tassilo@member.fsf.org> writes:
>> 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.
>
> In emacs from the current CVS I've added a new binding C-c C-t in
> doc-view-mode which opens the text of the current doc in a new buffer.
> When on a tty a message mentions that.
Thanks for this!
I tried it and found this problem: when the buffer is already converted
C-c C-t on it will fail because it tries to create a directory that does
already exist.
,----
| (defun doc-view-doc->txt (txt callback)
| "Convert the current document to text and call CALLBACK when done."
| (make-directory (doc-view-current-cache-dir))
`----
A check before making this directory is enough to make it work ok here,
but you know the code better than I do.
HTH,
--
Bastien
next prev parent reply other threads:[~2008-03-13 3:37 UTC|newest]
Thread overview: 38+ 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-12 13:45 ` Tassilo Horn
2008-03-13 3:37 ` Bastien [this message]
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
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=87od9jgupf.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=help-gnu-emacs@gnu.org \
--cc=tassilo@member.fsf.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.
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).