Skip to content

Fix height handling#92

Open
jun0 wants to merge 2 commits intofuxialexander:masterfrom
jun0:height-handling
Open

Fix height handling#92
jun0 wants to merge 2 commits intofuxialexander:masterfrom
jun0:height-handling

Conversation

@jun0
Copy link
Copy Markdown

@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
Copy Markdown
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