Questions tagged [pdf-tools]

For questions about using the pdf-tools package, which provides tools for viewing and annotating pdf files in Emacs

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

org-pdftools-open doesn't work for opening pdf links in org mode

Motivated by the question Symbol’s function definition is void: org-pdfview-open, pdf-tools are not working I would like to be able to open pdf-links in org-mode, which worked fine until a while ago. ...
user avatar
  • 163
0 votes
1 answer
32 views

Symbol’s function definition is void: org-pdfview-open, pdf-tools are not working

since some time I have encountered a problem with opening pdf links with pdf-tools. I am using doom-emacs and have just the line (add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open))...
user avatar
  • 163
0 votes
0 answers
21 views

Emacs 28.1 not rendering pdfs using pdf-tools correctly

I have recently upgraded emacs to emacs 28.1 (using binaries at https://emacsformacosx.com). I am using MacOS 12.0.1. and pdf-tools version 20220522.13. When I try to view a pdf (...
user avatar
0 votes
0 answers
43 views

Unable to install epdfinfo on Emacs 28.1

Running Doom Emacs 3.0.0-alpha on Emacs 28.1 on Manajaro with all the latest updates installed. When I M-x pdf-tools-install RET it fails to compile. The following is the output of the command: -*- ...
user avatar
  • 1,668
0 votes
1 answer
41 views

How to enable a minor mode immediately after a buffer is open?

I have been using a pdf-tools fork with a image-roll.el support, this fork and file make it possible to scroll continuously from the end of a page to the beginning of the other without jumping from ...
user avatar
0 votes
2 answers
81 views

Tell AUCTeX to open .PDFs with pdf-tools

I am trying to set pdf-tools as my default pdf viewer when using AUCTeX. I found some guidance elsewhere on StackExchange but it doesn't get me to a solution. As per the thread highlighted, I have the ...
user avatar
2 votes
0 answers
32 views

Emacs sometimes freezes from PDFs

I'm currently using Emacs 27.1 running on Ubuntu 21.10. The problem I have is Emacs stop responding from time to time, but this only occurs when I open a PDF file or while I'm reading PDF books (...
user avatar
  • 21
0 votes
2 answers
38 views

org-store-link: how to make docview default PDF link

Whenever I use org-store-link and org-insert-link for PDFs, it stores the link as file: type. This will open the link as an external PDF file with my OS PDF viewer. Is there a way to set up org-store-...
user avatar
0 votes
0 answers
45 views

fail to compile pdf-tools on Windows

Hope people are happy about using emacs. I have been using emacs for one and half years and really like it. And now I'm trying pdf-tools for reading pdf files on my computer but get stuck at compiling ...
user avatar
1 vote
1 answer
48 views

How to know whether a local keybinding map exists (for a given package) and its name

I was wondering if we can know whether a given package has a local map of keybindings. For example, I'd like to bind the function pdf-occur of the pdf-tools package by using the use-package macro. ...
user avatar
  • 59
0 votes
0 answers
56 views

pdf-tools auctex question with split buffer (vertically split)

A related question to a previously answered question: pdf-tools now has a nice continuous scroll mode, unfortunately, horizontal split buffers dont work nicely for continuous scroll pdf preview. So, ...
user avatar
  • 193
2 votes
1 answer
227 views

org-link to the exact page-position in a pdf file

Newest EDIT I think my question wasn't very clear, so I'm trying to put some details. With pdf-tools opening pdf files withing Emacs (PDFview buffers) works great. What I like is to get an org-link ...
user avatar
  • 326
0 votes
0 answers
26 views

Integrating a shell script with Emacs + aucTeX

I use git to track changes in my LaTeX documents. Emacs is my IDE of choice (20+ years and counting). A very common use case is the use of latexdiff to examine changes in the document between ...
user avatar
1 vote
1 answer
45 views

reftex select buffer

I use auctex/reftex with pdftools for preview. I use a vertical split C-x 3 of the emacs frame with the left buffer being the pdf preview and the right buffer being the latex file. When I invoke ...
user avatar
  • 193
2 votes
0 answers
105 views

Keep original colors in pdf-view-midnight-minor-mode?

Q: can I keep the original colors for plots and photos in pdf-view-midnight-minor-mode? pdf-view's midnight minor mode allows me to change the foreground and background colors of a PDF document to ...
user avatar
  • 31.1k
0 votes
1 answer
34 views

orgmode sync beamer with header in orgmode file

I am creating my beamer presentations with orgmode and convert the file to tex and pdf when saving. This works quite fine. What I am looking for is that the pdf (seen inside emacs with pdfview/pdf-...
user avatar
  • 55
1 vote
1 answer
74 views

pdf-view-mode - pdfs documents are blinking/flickering on scroll

I have small problem with pdf-tools - documents in pdf-view-mode are flickering/blinking on scroll. I am not well oriented about rendering, refreshing and all this stuff with pdfs. This is not about ...
user avatar
1 vote
2 answers
161 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 ...
user avatar
1 vote
0 answers
84 views

How to edit a documents outline in pdf-tools?

By pressing o you can open the outline for the pdf document. Is there any way you can also add new sections with the corresponding pages to this outline?
user avatar
  • 31
2 votes
0 answers
551 views

Open PDF files with pdf-tools does not work

I want to use pdf-tools to read my pdf with emacs. I am on Emacs 27.1 with spacemacs 0.300.x. I have pdf-tools as a package in my .spacemac file and also require '(TeX-view-program-selection '((...
user avatar
1 vote
0 answers
38 views

Highlight text without call commands in pdf-tools

Can I enter some 'highlight-mode' in pdf-tools that I can select and highlight text immediately without calling pdf-annot-add-highlight-markup-annotation or C-c C-a h? Thanks!
user avatar
  • 1,096
1 vote
0 answers
77 views

How to set the frame for opening pdf in org mode?

I have two links in my org buffer: [file://tmp/foo.pdf] [file://tmp/bar.pdf] Hitting enter on [file://tmp/foo.pdf] opens the pdf in the same frame (using pdf-tools / ..Running /usr/bin/xdg-open..). I ...
user avatar
  • 607
0 votes
0 answers
243 views

Poor display quality with pdf-tools after system update

I am using manjaro operating system. After the last system update I noticed a somewhat annoying thing when viewing pdf files in emacs with pdf-tools. The rendering quality become poor and the image ...
user avatar
0 votes
0 answers
211 views

Fit window to pdf upon loading

Question: I'm running auctex and pdf-tools to view pdf's within emacs. My problem is that I'd like to scale the pdf window horizontally after running C-c C-c. So far, I've created a hook to execute ...
user avatar
  • 61
4 votes
1 answer
3k views

error while loading shared libraries: libpoppler.so.101: cannot open shared object file: No such file or directory

Running Doom Emacs 2.0.9 on Emacs 27.1 on Manjaro KDE. When I compile a latex documents, it produces a PDF file and opens an emacs window to display it. But what is displayed is some text and not the ...
user avatar
  • 1,668
4 votes
0 answers
91 views

PDFView scroll line

I'm using <space> to scroll down in a pdf document that does not fit completely in a frame. However, this disrupts the reading flow as I need to find again the correct line that is now ...
user avatar
  • 41
1 vote
0 answers
80 views

org-download-screenshot from pdf-tools with renaming according to pdf name and pdf page

I would like to use org-download-screenshot (or some other function) in combination with pdf-tools. This works quite well out of the box. What I am missing is a enhanced renaming of the screenshot. ...
user avatar
  • 55
1 vote
0 answers
78 views

Manually installed pdf-tools breaks package handling because it is not recognized as a dependency

The situation is: I install pdf-tools manually and load it with the following snippet: (use-package pdf-tools :pin manual :load-path "my/load/path/to/the/git/repo/lisp" :config .......
user avatar
3 votes
1 answer
310 views

Edit PDF page labels in pdf-tools?

Q: how can I change PDF page labels with pdf-tools? pdf-tools has the capacity to annotate PDFs, which is great. Can it also change the page labels as well? That is, not the raw page number, but the ...
user avatar
  • 31.1k
1 vote
1 answer
357 views

Adding bookmarks in pdf-tools

Is there a way to add and view bookmarks in pdf-tools? Or else How could I go about adding this feature? I'm not actually sure if this is even a feature of pdfs. All I know is I can do this with ...
user avatar
1 vote
0 answers
64 views

Get position in a pdf-page by clicking for annoting a pdf with latex

In https://tex.stackexchange.com/a/85676/4011, it is illustrated of how to annotated a pdf by using the latex package pdfpages, loading the pdf as a background layer and then use tikz nodes to make ...
user avatar
  • 967
1 vote
2 answers
341 views

Easily open PDF attachments from gnus with pdf-tools?

I seem to remember that I used to be able to press RET on a PDF attachment button in a Gnus article and have it open with pdf-tools. It's not working now, when I press RET I get prompted to save the ...
user avatar
  • 4,612
0 votes
1 answer
276 views

pdf-tools view bottom of one page and top of another page simulatenously

Does pdf-tools have scrolling where I can view the bottom half of one pdf page and the top of the next page? Right now, my installation simply jumps to the next page and I cannot view two pages ...
user avatar
  • 193
3 votes
1 answer
274 views

hand draw arrow in pdf-tools

I like using pdf-tools to annotate a pdf file. Is there a way of hand-drawing an arrow (by dragging the mouse) in pdf-tools? It would help a lot in annotating pdf files. Even a template arrow (instead ...
user avatar
  • 193
0 votes
1 answer
157 views

auctex and pdf-tools reverse search change keybinding

Inverse search from pdf-tools to auctex uses Ctrl-click on the pdf file to go to the corresponding part of latex file. Is it possible to also assign Alt-click to do inverse search? I am using ubuntu ...
user avatar
  • 193
1 vote
1 answer
157 views

auctex pdf-tools split buffers in separate frames

This is an extension of my previous question auctex and pdf-tools in 2 separate frames which was nicely answered by Tobias. I use auctex in one frame and pdftools in another frame. Forward and inverse ...
user avatar
  • 193
2 votes
1 answer
282 views

auctex and pdf-tools in 2 separate frames for dual monitor setup

For auctex with pdftools it is convenient for me (eyesight problems) to have the emacs latex frame on my laptop close to my eyes, and the corresponding pdf (in pdftools) on a separate frame on the ...
user avatar
  • 193
5 votes
1 answer
344 views

pdf-tools auctex question with split buffers

I run auctex with the latex source on the left half buffer and corresponding pdf on the right half (using C-x 3 to split the buffer). I then split the left half buffer into 2 so as two work on ...
user avatar
  • 193
4 votes
1 answer
310 views

Make pdf-tools highlight persist after searching

Is it possible to make the highlight of searched terms persist after pressing RET? I had liked very much the behavior of zathura in this aspect. My question is : Can pdf-tools be tweaked to have the ...
user avatar
3 votes
1 answer
901 views

pdf-tools Emacs with auctex

I have setup Emacs pdf-tools with auctex on ubuntu and the forward and reverse search work fine. But in the forward search (latex file to corresponding position in pdf document), it is difficult to ...
user avatar
  • 193
1 vote
0 answers
208 views

Hide empty margins in pdf

My screen is a bit small and dividing it in two vertically to see a pdf while editing it leaves a lot to be desired. However, if pdf-tools or pdf-view mode had the option to hide a % of the empty ...
user avatar
2 votes
2 answers
2k views

pdf-tools asking to be rebuilt when emacs is started

My init.el file includes the line (pdf-tools-install) Recently whenever I open emacs I get the message "Need to (re)build the epdfinfo program, do it now" (y or n) which is rather annoying. I can't ...
user avatar
4 votes
0 answers
53 views

Page thumbnails for pdf-tools?

Q: is there an image-dired analog to make thumbnails in pdf-tools? image-dired provides facilities to browse images in a directory by thumbnail. Is there analogous functionality for pdf-tools? The ...
user avatar
  • 31.1k
1 vote
0 answers
164 views

How to show page number using pdf-tools in emacs mode line?

As title said, is there a way to have page number shows up in the mode line of emacs? I am not using any fancy power-line, this is stock emacs mode line.
user avatar
  • 285
0 votes
1 answer
61 views

Jump to a string in a PDF document

I want to write a function that jumps to a given string in a pdf document. I am using pdf-tools. Naively, I thought this would work: (defun goto-string-in-pdf (pdffile) "Jump to string 999 in ...
user avatar
  • 469
5 votes
1 answer
236 views

Select a word in a PDF by double-clicking on it (with pdf-tools)

I use pdf-tools in Emacs to view PDF documents. I would like to be able to select words (mark their region and then copy them to the kill-ring) in the PDF by double-clicking on them. Is there a ...
user avatar
  • 469
1 vote
2 answers
265 views

Preventing `TeX-command-run-all` from shifting focus

It seems that TeX-command-run-all shifts focus to the pdf window, which is quite annoying. Is there a way to prevent that?
user avatar
  • 2,924
1 vote
0 answers
127 views

Auto-reverting only renderable PDF buffers

I'm using pdf-view mode and the global auto-revert mode with LaTeX and latexmk. This works fine, except that, a couple of times during the compilation, the PDF is in a useless state and the PDF ...
user avatar
  • 2,924
3 votes
1 answer
224 views

Is it normal for a package to request [sudo] in order to install a package? (this case pdf-tools) concerned about password integrity

I installed pdf-tools through MELPA, and then labels it as installed on a restart but kept viewing pdfs through doc-view. So using M-x pdf-tools-install it requested the sudo password in order to ...
user avatar
  • 693
1 vote
1 answer
616 views

Installing PDF-Tools Windows(non-geek tutorial)

I want to use pdf-tools to anotate pdf files using org-mode or viewing pdf outputs of my tex files which I hope it wil support syntex. I am following the official help to build for windows. I want to ...
user avatar
  • 195