mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
47.17k stars 9.82k forks source link

PDF read order calculations #18226

Closed camsdixon1 closed 3 weeks ago

camsdixon1 commented 3 weeks ago

Hello,

we are looking to find the code related to the read order in the PDF. I've been able to stream and correctly identify read order but have not been able to find the math/code that identifies the text to decide the read order.

Could anyone show me where the calculations to decide read order happen?

thanks!