[Poppler-bugs] [Bug 3188] Pasting tables cells in strange order

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Nov 15 16:58:29 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=3188





--- Comment #39 from Brian Ewins <Brian.Ewins at gmail.com>  2009-11-15 16:58:29 PST ---
Created an attachment (id=31220)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=31220)
perl script to diagram log output

figuring out where and why the reading order sort goes wrong on random
documents is painful. I wrote this to help visualize the problems, it may help
others working on the problem. With the debug statements enabled (the 'PAGE'
before the ro sort, the list of blocks after, and the statements in
visitDepthFirst), this will dump out svg representing one page of the pdf. (you
need to change which page you're working on by editing the program)

Red boxes are blocks, blue lines are 'rule 1', green lines are 'rule 2'. For
both blue and green lines, a circle on the end indicates the 'after' block in
the comparison. These lines only appear when a block was not already in sort
order when it was visited; due to the other sorts in the code, the 0th block
generally has no lines leaving it (for example).

The upper number on each block is which position in the sorted array we were
filling when we visited it - this number repeats as you follow the recursion in
visitDepthFirst. The lower number is the position the block eventually sorted
to.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list