Sumário: Added instructions for getting it working on Windows.
> ntEmacs 24 :
> # Set up png support, you'll have to look elsewhere for instructions on this.
> # Install ghostscript and add the bin and lib directories to your path.
> # Get xpdf for windows and put the executables somewhere on your path.
> # Set this in your .emacs: (setq doc-view-ghostscript-program "gswin32c")
> # That should be it.
Conversion is done with ghostscript and various other tools. It even supports regexp search in documents. According to the “Document View” section of the EmacsManual,
‘gs’is a hard requirement. For DVI files,
‘dvipdfm’is needed. For OpenDocument and Microsoft Office documents, the
‘unoconv’tool is needed.
You can get a snapshot of doc-view.el at [[doc-view.el?]].
This can be customized via:
M-x customize-group RET doc-view RET
Emacs 23 Cygwin instructions
ntEmacs 24 :
I like to visit/read pdf-files in emacs, but one (or two) thing(s) that I miss: to save/load (automatically) the current/saved position or pagenumber. And if possible also the slice that I had set. – Michael
I don’t know about the latter, but it should be possible to use BookMarks to save the last position within DocView?. It would take making an EmacsLisp function and adding it to
‘kill-buffer-hook’ – AaronHawley