unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Viewing PDFs
@ 2011-10-28 15:11 Perry Smith
  2011-10-28 15:29 ` Tassilo Horn
  0 siblings, 1 reply; 4+ messages in thread
From: Perry Smith @ 2011-10-28 15:11 UTC (permalink / raw)
  To: Emacs help

[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]

Hi,

I apologize if this is a repeat issue but I don't recall it.  I'm also sending it to "help" instead of "devel" -- I hope that is right.

I'm running emacs 24.0.90 on a Mac 10.7.2.  I open a pdf and it first appears as raw text.  I try "doc-view-mode" and I get this stack (after setting debug-on-error).

>   locate-file-internal(nil ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/Applications/Emacs.app/Contents/MacOS/libexec" "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin") ("") 1)
>   locate-file(nil ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/Applications/Emacs.app/Contents/MacOS/libexec" "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin") ("") 1)
>   executable-find(nil)
>   doc-view-initiate-display()
>   doc-view-mode()
>   call-interactively(doc-view-mode t nil)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command nil nil)


I did the "normal" Mac build process:

./configure --with-ns
make install

I have not dug into it but I'm hoping this might be an easy "pilot error"...

Thank you,
pedz


[-- Attachment #2: Type: text/html, Size: 1997 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Viewing PDFs
  2011-10-28 15:11 Viewing PDFs Perry Smith
@ 2011-10-28 15:29 ` Tassilo Horn
  2011-10-28 15:31   ` Perry Smith
  0 siblings, 1 reply; 4+ messages in thread
From: Tassilo Horn @ 2011-10-28 15:29 UTC (permalink / raw)
  To: help-gnu-emacs

Perry Smith <pedzsan@gmail.com> writes:

Hi Perry,

> I'm running emacs 24.0.90 on a Mac 10.7.2.  I open a pdf and it first
> appears as raw text.  I try "doc-view-mode" and I get this stack
> (after setting debug-on-error).
>
>>   locate-file-internal(nil ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
>> "/Applications/Emacs.app/Contents/MacOS/libexec"
>> "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin") ("") 1)
>>   locate-file(nil ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
>> "/Applications/Emacs.app/Contents/MacOS/libexec"
>> "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin") ("") 1)
>>   executable-find(nil)
>>   doc-view-initiate-display()
>>   doc-view-mode()
>>   call-interactively(doc-view-mode t nil)
>>   execute-extended-command(nil)
>>   call-interactively(execute-extended-command nil nil)

It seems you've built emacs without PNG support, or ghostscript is not
on your PATH.  Therefore, doc-view falls back to show you the plain text
contents of the PDF, and then it fails because
`doc-view-pdftotext-program' is also not oun your PATH.

The reason for not showing the PDF as images should be messaged, so
check your *Messages* buffer.

Bye,
Tassilo
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Viewing PDFs
  2011-10-28 15:29 ` Tassilo Horn
@ 2011-10-28 15:31   ` Perry Smith
  2011-10-28 15:43     ` Tassilo Horn
  0 siblings, 1 reply; 4+ messages in thread
From: Perry Smith @ 2011-10-28 15:31 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]


On Oct 28, 2011, at 10:29 AM, Tassilo Horn wrote:

> Perry Smith <pedzsan@gmail.com> writes:
> 
> Hi Perry,
> 
>> I'm running emacs 24.0.90 on a Mac 10.7.2.  I open a pdf and it first
>> appears as raw text.  I try "doc-view-mode" and I get this stack
>> (after setting debug-on-error).
>> 
>>>  locate-file-internal(nil ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
>>> "/Applications/Emacs.app/Contents/MacOS/libexec"
>>> "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin") ("") 1)
>>>  locate-file(nil ("/usr/bin" "/bin" "/usr/sbin" "/sbin"
>>> "/Applications/Emacs.app/Contents/MacOS/libexec"
>>> "/Applications/Emacs.app/Contents/MacOS/bin" "/usr/local/bin") ("") 1)
>>>  executable-find(nil)
>>>  doc-view-initiate-display()
>>>  doc-view-mode()
>>>  call-interactively(doc-view-mode t nil)
>>>  execute-extended-command(nil)
>>>  call-interactively(execute-extended-command nil nil)
> 
> It seems you've built emacs without PNG support, or ghostscript is not
> on your PATH.  Therefore, doc-view falls back to show you the plain text
> contents of the PDF, and then it fails because
> `doc-view-pdftotext-program' is also not oun your PATH.
> 
> The reason for not showing the PDF as images should be messaged, so
> check your *Messages* buffer.

Ahh... yes:

> No PNG support is available, or some conversion utility for pdf files is missing.

Thanks,
pedz


[-- Attachment #2: Type: text/html, Size: 2923 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Viewing PDFs
  2011-10-28 15:31   ` Perry Smith
@ 2011-10-28 15:43     ` Tassilo Horn
  0 siblings, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2011-10-28 15:43 UTC (permalink / raw)
  To: Perry Smith; +Cc: help-gnu-emacs

Perry Smith <pedzsan@gmail.com> writes:

>> The reason for not showing the PDF as images should be messaged, so
>> check your *Messages* buffer.
>
> Ahh... yes:
>
>> No PNG support is available, or some conversion utility for pdf files
>> is missing.

You might want to edebug `doc-view-mode-p' in order to see what's
actually missing.

Bye,
Tassilo
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-28 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-28 15:11 Viewing PDFs Perry Smith
2011-10-28 15:29 ` Tassilo Horn
2011-10-28 15:31   ` Perry Smith
2011-10-28 15:43     ` Tassilo Horn

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).