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

Fit width mode for variable page sizes #447

Open
sebastinas opened this issue Feb 6, 2024 · 2 comments
Open

Fit width mode for variable page sizes #447

sebastinas opened this issue Feb 6, 2024 · 2 comments

Comments

@sebastinas
Copy link
Member

On GitLab by @helixoid on Feb 6, 2024, 06:46


I have some books (especially One Piece Manga) which has variable page sizes(several portrait and some landscape/dual-page-spreads) and when I press "s" it adjusts the document according to the width of page in landscape mode, at least it did before not now because of the page cropping issue.

I want it to adjust the document fit on per page basis like how Okular does.

I really love this program and not really a fan of all the kde dependencies that come with okular.

I also don't know how make zathura prevent scrolling to the next page when using mouse or touchpad one solution could be to display one page at a time and one change the page when pressed pagedown key and not the mouse scroll wheel.

And manga pages(dual-page-spreads) with different page sizes and getting cropped and some of the information is not displayed.

@phos-rt
Copy link

phos-rt commented May 12, 2024

Today I faced this same problem and tracked it back to this issue and corresponding commit.

Reverting the changes made in that commit makes Zathura able to render different sized pages correctly again, but reinstates the issues originally reported (inconsistent page padding in some pages and fit commands fitting to largest image in the document).

Not sure what the course of action should be but personally I'd like Zathura to go back on that change and be able to render pages of different sizes without cropping. Maybe we could find other ways to fix the issues in the initial report.

Here's a before and after of reverting the change:

zathura 0.5.4
screen-2024-05-12T22:03:53+0200

zathura 0.5.6 reverting the changes from that commit
screen-2024-05-12T22:03:29+0200

@devensiv
Copy link

related to #436

Im still having this issue using 0.5.6 (OS Arch Linux)
zathura --version

zathura 0.5.6
girara 0.4.4 (runtime: 0.4.4)
(plugin) pdf-poppler (0.3.2) (/usr/lib/zathura/libpdf-poppler.so)

my current workaround is downgrading to
zathura --version

zathura 0.5.2
girara 0.3.9 (runtime: 0.3.9)
(plugin) pdf-poppler (0.3.1) (/usr/lib/zathura/libpdf-poppler.so)

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

No branches or pull requests

3 participants