Describe the bug
When pdf-view-auto-slice-minor-mode is enabled in pdf-view-mode for a pdf buffer, pdf-view-enlarge and pdf-view-shrink don't work and incur an error error "Invalid image specification".
Is this a normal behavior?
Steps to Reproduce the behaviour
- Open a pdf under
pdf-view-mode with pdf-view-auto-slice-minor-mode enabled.
- Execute
pdf-view-enlarge or pdf-view-shrink.
With toggle-debug-on-error enabled, the debugger outputs:
Debugger entered--Lisp error: (error "Invalid image specification")
pdf-view-image-size()
pdf-view-enlarge(1.25)
funcall-interactively(pdf-view-enlarge 1.25)
command-execute(pdf-view-enlarge record)
execute-extended-command(nil "pdf-view-enlarge" "enlarge ")
funcall-interactively(execute-extended-command nil "pdf-view-enlarge" "enlarge ")
command-execute(execute-extended-command)
What is the expected behaviour?
Properly scale the pdf buffer.
Desktop
- OS: ArchLinux
- Emacs Version: GNU Emacs 30.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.52, cairo version 1.18.4)
- Package Manager Version: Pacman v7.1.0 - libalpm v16.0.1
Your pdf-tools install
Package pdf-tools is installed.
Status: Installed in ‘pdf-tools-20260102.1101/’ (unsigned). Delete
Version: 20260102.1101
Commit: e4b7f1f37cf59ddf025d609ffcdabe732a6e99ba
Summary: Support library for PDF documents.
Requires: emacs-26.3, tablist-1.0, let-alist-1.0.4
Website: https://github.com/vedang/pdf-tools/
Keywords: files multimedia
Author: Andreas Politz <mail@andreas-politz.de>
Other versions: 20260102.1101 (melpa), 1.3.0 (nongnu), 1.3.0 (melpa-stable).
pdf-tools customization / configuration that you use
This also happens without customization or configuration in vanilla emacs, only with pdf-view-auto-slice-minor-mode enabled.
Describe the bug
When
pdf-view-auto-slice-minor-modeis enabled inpdf-view-modefor a pdf buffer,pdf-view-enlargeandpdf-view-shrinkdon't work and incur an errorerror "Invalid image specification".Is this a normal behavior?
Steps to Reproduce the behaviour
pdf-view-modewithpdf-view-auto-slice-minor-modeenabled.pdf-view-enlargeorpdf-view-shrink.With
toggle-debug-on-errorenabled, the debugger outputs:What is the expected behaviour?
Properly scale the pdf buffer.
Desktop
Your pdf-tools install
pdf-toolsVersion:pdf-toolscustomization / configuration that you useThis also happens without customization or configuration in vanilla emacs, only with
pdf-view-auto-slice-minor-modeenabled.