Bug 697461

Summary: mupdf fit to width/height is incorrect.
Product: MuPDF Reporter: Thibaud Lutellier <thibolu>
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: tor.andersson
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: file trigering the issue

Description Thibaud Lutellier 2017-01-03 09:35:00 UTC
Created attachment 13271 [details]
file trigering the issue

Description:
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.

Reproduction:
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.