maxidrom / pdf.js

Seamless web pdf reader
https://bulba.site/lib2/engine/back/login.html
Apache License 2.0
0 stars 0 forks source link

bug: order of spans #19

Open maxidrom opened 1 year ago

maxidrom commented 1 year ago

https://matrix.to/#/!NofDvGEWAARHltVRTj:mozilla.org/$_xHkugtYUecCEBtYwmBwUfp7fVtZmq7Am48v9FBhIqs?via=mozilla.org&via=matrix.org&via=nope.chat

calixte in the text layer the spans are coming in order they are in the pdf: visually you could read "foo" and then "bar" but in the pdf it could be write "bar" at (100, 0) then write "foo" at (0, 0) so in the text layer you'll get span bar at 100, 0 and then span foo at 0, 0 so if you don't take care about the order, you'll read "bar foo"

maxidrom commented 1 year ago

-