Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix height handling #92

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jun0
Copy link

@jun0 jun0 commented Mar 9, 2023

Hi, the height parameter of org-pdftools link seems to be treated incorrectly: C-c C-o jumps to a point that's way too high (i.e. way too close to the top of the page). There's code in org-pdftools-open-pdftools that converts the height (given as a fraction of page height) to number of lines before giving it to image-set-window-vscroll, but image-set-window-vscroll wants the input specified in pixels, not lines. This PR removes the conversion to lines.

jun0 added 2 commits March 9, 2023 10:50
At least since Emacs 27.2, image-set-window-vscroll specifies VSCROLL
in pixels, not lines.
@rdiaz02
Copy link
Contributor

rdiaz02 commented Apr 3, 2023

Out of curiosity: do you have a pdf and note where this happens? I've never experienced this, and wanted to make sure I understood before adding your changes to my fork of the repo. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants