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 that just made the pdf render larger.
Asked
Active
Viewed 4,135 times
13

wdkrnls
- 3,657
- 2
- 27
- 46
-
2`(doc-view-clear-cache)` – Josh.F Dec 14 '19 at 21:27
1 Answers
7
If by "render larger" you mean that the dimensions of the rendered png image are larger, then you could use some of the doc-view
functions to fit the image to your window: doc-view-fit-page-to-window
, doc-view-fit-width-to-window
, and doc-view-fit-height-to-window
.
In other words, increase the resolution of the rendered image as you did, and then fit (probably shrink) the sharper image with the ...-fit-...
functions.

Dan
- 32,584
- 6
- 98
- 168
-
sadly, these commands don't appreciably improve the rendering quality. This is especially noticeable for figures. – wdkrnls Oct 17 '14 at 18:23
-
1It turns out that doc-view was rendering the PDF fine. The PDF output from LaTeX was just really low quality. – wdkrnls Oct 28 '14 at 17:09
-
@wdkrnls so how did you improve on it? Asking because it seems I have the same problem – pandita Apr 06 '17 at 14:04
-
3For the resolution change to take effect one first has to kill all buffers displaying the pdf and run `doc-view-clear-cache`. – Daniel Nov 13 '17 at 15:26
-
Note that solution with 'doc-view-resolution' works only when doc-view-scale-internally is on and imagemagic support is enabled. Otherwise Emacs does rescaling by changing doc-view-resolution to a lower value. – Artem Pianykh Mar 05 '19 at 08:16