Function: doc-view-enlarge
doc-view-enlarge is an interactive and byte-compiled function defined
in doc-view.el.gz.
Signature
(doc-view-enlarge FACTOR)
Documentation
Enlarge the document by FACTOR.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defun doc-view-enlarge (factor)
"Enlarge the document by FACTOR."
(interactive (list doc-view-shrink-factor))
(if doc-view-scale-internally
(let ((new (ceiling (* factor doc-view-image-width))))
(unless (equal new doc-view-image-width)
(setq-local doc-view-image-width new)
(doc-view-insert-image
(plist-get (cdr (doc-view-current-image)) :file)
:width doc-view-image-width)))
(let ((new (ceiling (* factor doc-view-resolution))))
(unless (equal new doc-view-resolution)
(setq-local doc-view-resolution new)
(doc-view-reconvert-doc)))))