Bug 697461 - mupdf fit to width/height is incorrect.
Summary: mupdf fit to width/height is incorrect.
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Linux
: P4 normal
Assignee: muPDF bugs
Depends on:
Reported: 2017-01-03 09:35 UTC by Thibaud Lutellier
Modified: 2018-11-09 16:28 UTC (History)
1 user (show)

See Also:
Word Size: ---

file trigering the issue (455.86 KB, application/pdf)
2017-01-03 09:35 UTC, Thibaud Lutellier

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud Lutellier 2017-01-03 09:35:00 UTC
Created attachment 13271 [details]
file trigering the issue

When I try to display the attached file on full screen mode with mupdf. The "fit to height" (shift+h) and "fit to width" (shift+w) functions do not work as expected. The page is still surrounded by a grey background instead of fully using the size of the screen.

1) Open the attached file with Mupdf
2) Display the file in full screen mode (f)
3) Use the function fit to height (shift+h)

Expected behavior:
The page should be displayed using the full height of the monitor. (no grey area above and below the page.

Observed behavior:
The display does not used the entire screen space (there are grey space above and below the page. This works fine with other PDF readers.

Additional Info:
Resolution: 1920x1080
Comment 1 Tor Andersson 2018-11-09 16:28:48 UTC
commit 1b9490577c2a3a27ccd89a98cce614719660f78a
Author: Tor Andersson <tor.andersson@artifex.com>
Date:   Fri Nov 9 17:24:01 2018 +0100

    Fix 697461: Use floating point resolution in mupdf-x11.
    Fitting the page to the screen needs more precision than an integer DPI.