You are not logged in.

#1 2016-10-25 16:01:53

geo909
Member
Registered: 2008-09-07
Posts: 309

zathura has big page gaps in dual mode when viewing some pdf files

Hi all,

I have had trouble viewing some pdf documents with zathura in dual mode for quite a while.
In particular, when a document contains a rotated page, then the spacing has a lot of gaps
between the other pages.

Example:
http://i.imgur.com/vsZ2VH2.jpg

While this gap may seem tolerable, on a big wide monitor it is particularly annoying when
I want to zoom in since then I cannot see big part of the document.

Note that this does not happen with other viewers, so it's not a problem of the document.
See for example how the same pdf looks in evince:
http://i.imgur.com/4lDYH9S.jpg
Also I had no problems with the built-in firefox pdf viewer.

(Here's  a link to the pdf file.)

I opened a bug report for this a long time ago. A dev (I think) referred to me to another bug report
where the user solved this by updating girara. I do have the latest girara but the problem persists.
I haven't heard back for that again so I thought I'd shoot the question here. Is that a bug indeed or
am I missing something? Should I open another report on that site? I don't want to bug (no pun
intended) them again for no reason.

Thanks a lot in advance.

EDIT: forgot to include the versions I use.

$ pacman -Qn | grep 'zathura\|girara'
girara 0.2.6-3
zathura 0.3.6-3
zathura-djvu 0.2.5-2
zathura-pdf-poppler 0.2.6-2
zathura-ps 0.2.3-2

Last edited by geo909 (2016-10-25 16:13:26)

Offline

#2 2016-10-26 08:42:08

DrahcirNovY
Member
Registered: 2016-02-22
Posts: 2

Re: zathura has big page gaps in dual mode when viewing some pdf files

Same problem here, and after reding the source code I conclude that zathura uses the maximum width of all pages as width of each page, and the same holds for height. So this is actually not a bug,  but a design flaw. In your pdf file, the rotated page is too wide, so its width is used as the width of each page.

Last edited by DrahcirNovY (2016-10-26 08:45:18)

Offline

#3 2016-10-26 14:58:00

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: zathura has big page gaps in dual mode when viewing some pdf files

DrahcirNovY wrote:

Same problem here, and after reding the source code I conclude that zathura uses the maximum width of all pages as width of each page, and the same holds for height. So this is actually not a bug,  but a design flaw. In your pdf file, the rotated page is too wide, so its width is used as the width of each page.

Thanks. I guess that would be fine if the pages were aligned properly in dual mode.

Maybe I'll open a ticket again.

Offline

#4 2016-11-27 12:59:49

jrl
Member
Registered: 2016-02-12
Posts: 19

Re: zathura has big page gaps in dual mode when viewing some pdf files

I have a similar problem but not regarding rotation. There are pitch black bars around the document as illustrated on the screenshot below. It's slightly different but still persistent in the git version. I remember that about half a year ago those bars weren't black but had the same color as document background. So it shouldn't be a design flaw. Is there any hope that it will be fixed anytime soon?

161127_144210_Platinum.png

Offline

#5 2016-11-27 13:29:28

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: zathura has big page gaps in dual mode when viewing some pdf files

jrl wrote:

I have a similar problem but not regarding rotation. There are pitch black bars around the document as illustrated on the screenshot below. It's slightly different but still persistent in the git version. I remember that about half a year ago those bars weren't black but had the same color as document background. So it shouldn't be a design flaw. Is there any hope that it will be fixed anytime soon?

https://www.upload.ee/thumb/6389986/161127_144210_Platinum.png

That's probably you, but there was a bug report just posted:
https://bugs.pwmt.org/project/zathura/issue/661

Offline

#6 2021-02-05 02:47:05

Ailrk
Member
Registered: 2021-02-05
Posts: 2

Re: zathura has big page gaps in dual mode when viewing some pdf files

I made a fork from the original repo that fixed the problem for now. The fork makes sure all pages are the same size. https://github.com/ailrk/zathura

Last edited by Ailrk (2021-02-05 04:28:04)

Offline

#7 2021-02-05 04:27:13

Ailrk
Member
Registered: 2021-02-05
Posts: 2

Re: zathura has big page gaps in dual mode when viewing some pdf files

Ailrk wrote:

I made a fork from the original repo that fixed the problem for now. The fork makes sure all pages are the same size. https://github.com/ailrk/zathura

This is how it looks like before:
Before

With the fix:
After

Last edited by Ailrk (2021-02-05 04:27:46)

Offline

Board footer

Powered by FluxBB