evince and selection on rotated text

Bug #245620 reported by ®om
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
poppler (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Upstream URL:
https://gitlab.freedesktop.org/poppler/poppler/issues/499

1) lsb_release -rd
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04

2) apt-cache policy evince
evince:
  Installed: 3.14.1-0ubuntu1
  Candidate: 3.14.1-0ubuntu1
  Version table:
 *** 3.14.1-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen via the attached document is that one may highlight the text that has been rotated at a 45 degree angle, one row at a time, just like Adobe Reader 10.x:
https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/245620/+attachment/314937/+files/m1.pdf

4) What happens instead is it highlights parts of the line, along with others, as per the attached screenshot:
https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/245620/+attachment/314936/+files/Capture-1.png

Tags: hardy vivid
Revision history for this message
®om (rom1v) wrote :

When selecting rotated text in evince, it doesn't work correctly (see attached screenshot).

The original pdf is attached too...

Revision history for this message
®om (rom1v) wrote :
Revision history for this message
®om (rom1v) wrote :
Revision history for this message
Vladimir Osintsev (osintsev) wrote :

Confirmed on Hardy Heron with Evince Document Viewer 2.22.2

Changed in poppler:
status: New → Confirmed
Changed in poppler:
importance: Undecided → Low
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report. This bug has been reported to the developers of the software. You can track it and make comments here: https://bugs.freedesktop.org/show_bug.cgi?id=16619

Changed in poppler:
assignee: nobody → desktop-bugs
status: Confirmed → Triaged
Revision history for this message
®om (rom1v) wrote :

Thanks for reported to freedesktop.org.

When I click on the link, it says that the security certificate is invalid. :(

Revision history for this message
®om (rom1v) wrote :

s/reported/having reported

Changed in poppler:
status: Unknown → Confirmed
Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
Revision history for this message
In , Marek Kašík (mkasik) wrote :

Created attachment 92928
Respect orientation when selecting words

Attached is a patch which improves selection of words when PDF is rotated by multiples of 90°. It sets correct bounds on various visit*() functions.

The patch doesn't solve all problems related to this. There are still problems with order of selected lines and blocks when multiple blocks are selected.

The problem with correct order of lines is easier to fix but I have not a patch ready yet. The problem with correct order of blocks is a little bit harder since it needs to correct flows.

The main problem why I started to look into this was that poppler shows this warning on some PDFs (see next attachment):

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

Btw, the patch doesn't fix the problem shown on the Pedro's screenshot but it is related to the name of this bug.

Revision history for this message
In , Marek Kašík (mkasik) wrote :

Created attachment 92929
reproducer showing "Invalid rectangle" error when selecting text

penalvch (penalvch)
description: updated
Revision history for this message
In , penalvch (penalvch) wrote :

Problem confirmed:

1) lsb_release -rd
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04

2) libpoppler 0.28.1-1ubuntu1

apt-cache policy evince
evince:
  Installed: 3.14.1-0ubuntu1
  Candidate: 3.14.1-0ubuntu1
  Version table:
 *** 3.14.1-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen via the attached document is that one may highlight the text that has been rotated at a 45 degree angle, one row at a time, just like Adobe Reader 10.x:
https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/245620/+attachment/314937/+files/m1.pdf

4) What happens instead is it highlights parts of the line, along with others, as per the attached screenshot:
https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/245620/+attachment/314936/+files/Capture-1.png

Changed in poppler (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody
importance: Low → Medium
madbiologist (me-again)
tags: added: hardy vivid
Revision history for this message
In , Gitlab-migration (gitlab-migration) wrote :

-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/499.

Changed in poppler:
status: Confirmed → Unknown
penalvch (penalvch)
no longer affects: poppler (Ubuntu)
affects: poppler → poppler (Ubuntu)
Changed in poppler (Ubuntu):
importance: Medium → Undecided
status: Unknown → New
importance: Undecided → Medium
status: New → Triaged
description: updated
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.