Skip to main content

Questions tagged [docview]

DocView mode is a major mode for viewing DVI, PostScript (PS), PDF, OpenDocument, and Microsoft Office documents. It provides features such as slicing, zooming, and searching inside documents. It works by converting the document to a set of images using the gs (GhostScript) or mudraw/pdfdraw (MuPDF) commands and other external tools, and displaying those images.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

A way to make doc-view fit images by the width of the window automatically

So I have been using AUCTeX on Emacs recently, and I have been using doc-view to display the compiled pdf, but the doc-view standard resolution is too low and the image looks foggy, I increased the ...
Felipe Dilho's user avatar
0 votes
1 answer
209 views

Is there a way to navigate using table of contents in DocView mode?

Is there a way to navigate in DocView mode(for pdfs) to particular section using the section title instead of page number?
jun's user avatar
  • 780
0 votes
0 answers
241 views

doc-view rendering of pdf files

I have emacs 27.2 installed on my M1 Macbook pro. With a lot of pdfs when I first visit the file from dired, the font rendering is badly messed up -- a lot of the characters are replaced either by ...
Victor Miller's user avatar
1 vote
1 answer
102 views

PDF appears very dark when viewed in DocView on MacOS

When I view PDFs in Emacs using DocView, they appear much darker than they should: I am not sure why this happens -- I haven't changed any settings related to DocView or enabled any minor modes that ...
Ajay Tatachar's user avatar
2 votes
1 answer
2k views

`doc-view-mode` for PDFs not working

For some reason I cannot view PDF files in doc-view-mode. Supposedly if I open a PDF file in Emacs, it should automatically open in the doc-view major mode. If it can't be opened in doc-view, then ...
Thain's user avatar
  • 21
1 vote
2 answers
402 views

Pdf-tools: Toggle between viewing and editing mode

In DocView (without pdf-tools installed) I could hit C-c C-c to toggle between viewing-mode and editing-mode. After installing pdf-tools I expected C-c C-c to act the same. But now it toggles between ...
Andreas Matthias's user avatar
1 vote
0 answers
18 views

DocView: Nuisance popup of page number in viewing .dvi files

I use DocView under Emacs 26.1 under Cygwin 10.0.2 under Windows 10.0. I use it chiefly for reading .dvi files. I discovered it by accident and find it extremely useful, but I cannot find any ...
Joseph Fineman's user avatar
1 vote
1 answer
788 views

How to disable DocView mode (completely)?

I found here that the following disables DocView mode for a specific file type, like PDF: (add-to-list 'auto-mode-alist '("\\.pdf\\'" . fundamental-mode)) But how can DocView mode be disabled ...
mathlete's user avatar
  • 398
1 vote
2 answers
135 views

Adding pdf page number/amount back when using powerline with docview

So I started using the powerline addon for emacs, and I noticed that among other things, by default it hides the page number of the pdf file (for instance P1/4) in the mode line. Is there any way to ...
Jan Wanot's user avatar
1 vote
0 answers
285 views

How to (mostly) get rid of doc-view?

Since I moved to emacs 25 (25.3.2 at the moment) in every context (org-mode, gnus, latex, browsing url, direct access to file) I access pdf-files in emacs, they are displayed in doc-view. I basically ...
newtothis's user avatar
2 votes
1 answer
157 views

disable view prompt in AUCtex [closed]

I have been attempting to disable a prompt by auctex when pressing C-c C-c to view the document for close to the entire day. As I am a noob to emacs, I attempted to simply modify the auctex ...
SNTag's user avatar
  • 21
0 votes
4 answers
258 views

uninstall doc viewer in emacs

I am trying to open files in Emacs using dired. But whenever I open pdf files, the doc viewer in Emacs keeps loading the document. Is there any way to stop the pdf files being opened in Emacs ...
ron's user avatar
  • 1
2 votes
3 answers
1k views

Use mutool / mpdf to render pdf documents in doc-view mode in Windows

Since I feel that ghostscript is buggy on my surface laptop (at least its not working properly for doc-view in emacs with the pdf-Documents I want view; its beamer.pdf created with org-mode-beamer ...
phynfo's user avatar
  • 141
1 vote
1 answer
1k views

doc-view not working with emacs 25.2.1. (x86_64-w64-mingw32)

I am definitely no newbie and I think I now followed every little advice I could find online, and after 2 days doc-view is still not working :-( (it works fine on my older laptop under windows 10) On ...
phynfo's user avatar
  • 141
4 votes
1 answer
420 views

Preview PDFs with helm-bibtex

I use helm-bibtex to navigate and manage my bibtex database. Each entry is linked to a PDF. I am looking for a way to see a live preview of each pdf, while scanning through my helm completion window ...
Adam's user avatar
  • 1,947
0 votes
1 answer
52 views

Removing old name /tmp/docview1000 warning

When starting emacs I get the following warning: Warning (initialization): an error occurred while loading '/home/jamesbond/.emacs': File error: Removing old name, no such file or directory, /tmp/...
mwater's user avatar
  • 101
2 votes
1 answer
202 views

pdf-tools indirect buffers

I am using an indirect buffer of a pdf from a pdf-tools PDFView buffer. This works except the indirect buffer is in DocView mode, and therefore I can't use any of the pdf-tools features in that buffer....
salotz's user avatar
  • 1,430
1 vote
1 answer
721 views

Is there a fast way to get a docview link to a specific page in a PDF document?

When I press "w" in eww-mode i get the link to the opened Homepage. Now I can yank this link very fast in an Org Mode file. How can I get such a link to a specific page in an open PDF document in the ...
tester's user avatar
  • 491
2 votes
2 answers
398 views

Gnome Tracker integration with emacs

I use Gnome Tracker quite a bit and am led to wonder whether there is currently any way to use Tracker from within emacs? That is to say; searching for files indexed by Tracker, within emacs (and ...
Vishal Belsare's user avatar
2 votes
0 answers
108 views

doc-view failing for some PDFs, but ghostscript can view them?

When I use docview to view PDFs on my work computer (a redhat linux system) it always works, except in PDFs coming from Springer-Verlag articles and chapters. In that case it gives this error: ...
Victor Miller's user avatar
1 vote
0 answers
92 views

Calling `doc-view-goto-page` in other buffer

I'm trying to control paging of a PDF file in doc-view mode. Say we have the following snippet (let ((origin-frame (window-frame))) (with-selected-frame (make-frame-command) (let ((pdf-buffer (...
Saddle Point's user avatar
2 votes
1 answer
1k views

How to jump to a page in `DocView` mode when a pdf contains a roman numeral numbered introduction?

Lets say that I am viewing a pdf in emacs which contains a section numbered with roman numerals. How would I jump to page xxii in that section without doing mental math about what that page's number ...
FabulousGlobe's user avatar
9 votes
2 answers
1k views

Org-mode file hyperlinks always use doc-view, can't force it to use external pdf viewer

I am using Emacs 25.1 run with emacs -Q and Org mode version 8.2.10. This problem persists in my customized Emacs with Org mode version 8.3.6. I am attempting to open hyperlinks of the form [[file:...
Zacatexas's user avatar
  • 313
0 votes
1 answer
241 views

Why does viewing PGP encrypted PDF fail?

When I try to open a PGP encrypted PDF file.pdf.gpg, then – after entering the PIN in my smartcard reader – a window pops up with an error message: Error: /syntaxerror in (binary token, type=150) ...
feklee's user avatar
  • 1,079
0 votes
1 answer
2k views

How to give my emacs access to ghostscript?

I strugle to give my emacs access to ghostscript (to make doc-view show me pdf previews), and seem lost in a plethora of internet advises about how to install gs. Here is what I have done, and it does ...
myotis's user avatar
  • 1,139
4 votes
2 answers
1k views

Emacs 24 Gui and Retina Display

I've got a macbook pro with a retina display and Emacs 24.5. DocView rendering of pdf are very blurry. There is a few threads on the subjects but they deal with setting a higher resolution which didn'...
ldc's user avatar
  • 241
7 votes
2 answers
2k views

Doc-view change background to black

How can we invert the colors of the image when opening a pdf file in doc-view?
DJJ's user avatar
  • 770
2 votes
0 answers
779 views

How to disable doc-view in AUCTex

I'm using Emacs 24.3.1 on Ubuntu 14.04 with AUCTex for LaTeX editing. The command C-c C-c allows me to easily compile the document with pdflatex. However, the second time I'm running C-c C-c, instead ...
tom4everitt's user avatar
2 votes
1 answer
633 views

PDF doc view flickers continously

I just configured my emacs to display PDFs using doc view. But the problem is that the display flickers continuously. It seems that doc view is constantly refreshing the frame leading to an unpleasant ...
Milap's user avatar
  • 163
7 votes
1 answer
4k views

Make doc-view use mupdf for pdf files

Of course I already know about https://github.com/politza/pdf-tools. I am on Emacs 24.5.1. I am not convinced that doc-view is using mudraw/mupdf for pdf files. (require 'doc-view) (print doc-view-...
vyp's user avatar
  • 243
4 votes
0 answers
2k views

Doc-view not working despite gs being in my path

I have trouble getting the doc-view-mode displaying pdfs. Here's the error message generated : No PNG support is available, or some conversion utility for pdf files is missing. From what I've ...
Literal's user avatar
  • 675
14 votes
4 answers
8k views

read e-books in Emacs

I use eww to read online articles in Emacs instead of in a browser because it is less distracting and I can take notes in an org-mode quickly without switching applications. I wonder how feasible it ...
yi.tang.uni's user avatar
  • 1,017
3 votes
1 answer
1k views

doc-view-mode-hook?

Whenever I open a pdf in emacs, I'd like to increase the font size. I thought I would just place (doc-view-enlarge) in a 'doc-view-mode-hook. However, I can't find such a hook. Yet this source ...
erjoalgo's user avatar
  • 873
6 votes
1 answer
343 views

Enable follow-mode for PDF in doc-view/pdf-view-mode

Is it possible to customize follow mode to open the next PDF page in another buffer? Currently follow-mode has no effect on PDF files.
Tu Do's user avatar
  • 6,882
1 vote
1 answer
523 views

Scroll other window (doc-view) -- by page -- with mouse wheel

I am using a slightly modified version of doc-view mode and would like to maintain focus in a different window, while hovering with the mouse over the doc-view window and scroll the image page-up or ...
lawlist's user avatar
  • 19.5k
1 vote
1 answer
358 views

docview: suppress "File X is too large, really open?" confirmation

Is it possible to avoid the "File X is too large, really open?" confirmation? If not, would it be possible for Emacs to remember my answer the first time I visited a large file? If I visited it once,...
Boccaperta-IT's user avatar
12 votes
1 answer
1k views

How to display several pages of a PDF simultaneously in Docview?

I'm using Emacs, AUCTeX, and latex-preview-pane-mode to create a PDF presentation. However, the preview only displays one page at a time. Is this the only way? It wastes some of the vertical space ...
user avatar
15 votes
1 answer
5k views

improve doc-view display quality

The fonts in my pdf's as displayed in doc-view aren't particularly readable. Is there a setting I can change to improve the image quality? I tried changing doc-view-resolution from 100 to 300, but ...
wdkrnls's user avatar
  • 3,767
0 votes
1 answer
152 views

DocView clashing with global keymaps

I have the following keymap defined to navigate my Emacs windows: (defvar my-keys-minor-mode-map (make-keymap) "my-keys-minor-mode keymap.") (define-key my-keys-minor-mode-map (kbd "C-M-j") 'windmove-...
Amelio Vazquez-Reina's user avatar
25 votes
2 answers
44k views

How to view and edit pdf files in emacs?

I heard that we can view pdf files in emacs. Is it done by converting pdf files to plain texts first? Can we view pdf files at its fullness in emacs? can we edit pdf files in emacs? Thanks.
Tim's user avatar
  • 5,067