{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/6509","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6509/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6509/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6509/events","html_url":"https://github.com/mozilla/pdf.js/issues/6509","id":110103973,"number":6509,"title":"text highlighting quirk on PDF files produced by Tesseract","user":{"login":"jbreiden","id":4961958,"avatar_url":"https://avatars.githubusercontent.com/u/4961958?v=3","gravatar_id":"","url":"https://api.github.com/users/jbreiden","html_url":"https://github.com/jbreiden","followers_url":"https://api.github.com/users/jbreiden/followers","following_url":"https://api.github.com/users/jbreiden/following{/other_user}","gists_url":"https://api.github.com/users/jbreiden/gists{/gist_id}","starred_url":"https://api.github.com/users/jbreiden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbreiden/subscriptions","organizations_url":"https://api.github.com/users/jbreiden/orgs","repos_url":"https://api.github.com/users/jbreiden/repos","events_url":"https://api.github.com/users/jbreiden/events{/privacy}","received_events_url":"https://api.github.com/users/jbreiden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-06T21:21:11Z","updated_at":"2015-10-06T21:21:11Z","closed_at":null,"body":"Programs like Tesseract are used to OCR documents. Basically, we take\r\na photographic image, recognize any symbolic text, and then compose a PDF \r\nconsisting of the photograph and an invisible symbolic text layer for copy-paste\r\nand search.\r\n\r\nI am the author of the relevant software, and similar code in other programs.\r\nWe get very good results in many PDF renderers including pdfium and \r\npoppler, but get misaligned highlighting from pdf.js in Firefox. \r\n\r\nGitHub is refusing to let me post a simple example PDF here, so I am\r\nproviding a URL instead of attachment. This is a very simple example from\r\nour test suite. I have 100% control over the PDF generation code and \r\nunderstand everything about it, so if there is any complaint about it let me \r\nknow and we'll work it out.\r\n\r\nhttp://leptonica.org/jbreiden/simple-1.pdf\r\n\r\n![screenshot](https://cloud.githubusercontent.com/assets/4961958/10322289/f0cf5bbe-6c31-11e5-84c3-a60eb99abb4a.png)\r\n\r\nBuild identifier: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0"}}