internal pdf viewer distorts document

Bug #1609942 reported by David Ho
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
texmaker (Ubuntu)
Confirmed
Undecided
Philip Rinn

Bug Description

Just upgraded from 14.04 to 16.04 running in VMplayer, texmaker now depends on Qt5 and it is squeezing the document in the vertical direction when viewed using internal viewer. Evince displays the document fine.

However, this makes texmaker nearly unusable since the internal viewer can be cross-linked between source and pdf output.

This has not been a problem with texmaker in 14.04.

Tags: patch
Revision history for this message
David Ho (davidkwho) wrote :

Can you suggest a workaround in the meantime? (e.g. reverting to a texmaker in 14.04)

David Ho (davidkwho)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in texmaker (Ubuntu):
status: New → Confirmed
Revision history for this message
Adrian (u-ubuntu-m) wrote :

confirm for ubuntu 17.10 / texmaker 4.5/ qt 5.6.1
also affects texmaker 5.0.2 from the original author's website

Revision history for this message
Adrian (u-ubuntu-m) wrote :

it appears the distortion is proportional to the screen resolution ratio.

if I temporarily change the resolution to 1024x768 (or any other 4:3 ratio) and open the pdf viewer the pdf is not distorted. This remains, even after I switch back to my screens native 16:10 ratio. However, if I close the window, and reopen the pdf viewer, it is distorted again.

Revision history for this message
Philip Rinn (rinni) wrote :

I forwarded the issue upstream. Unfortunately there is no upstream bug tracker but just private mail. I'll keep this report updated.

Changed in texmaker (Ubuntu):
assignee: nobody → Philip Rinn (rinni)
Revision history for this message
Adrian (u-ubuntu-m) wrote :

after some tests I concluded that the problem is, that Xorg (xrandr, xdpyinfo, and so on) is wrongly assuming physical display dimensions. It will assume your screen is 4:3 or 16:9 even if it is not. Texmaker is one of the few programs paying close attention to the resolution and thus distorting pdf output, as it calculates different DPI-values for X and Y, i.e., adapting to non-square pixels and adjusting for that.

I tried correcting the pixel-dimensions ratio using xrandr but it simply ignores it.

So I made a small patch for texmaker that will force square pixels geometry, even if Xorg reports it wrong. After all, all other pdf viewers don't seem to care about non-square pixels either.

Revision history for this message
Adrian (u-ubuntu-m) wrote :

for the non-developers in this thread: here are the .deb files, in case you want to check if this fixes your problems. just unpack and than install with
deb -i texmaker_5.0.2-1ubuntu1_amd64.deb texmaker-data_5.0.2-1ubuntu1_all.deb

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch-square-pixels.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.