{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/5643","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/5643/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/5643/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/5643/events","html_url":"https://github.com/mozilla/pdf.js/issues/5643","id":54260538,"number":5643,"title":"Retrieve bounding box of text on a page","user":{"login":"nschloe","id":181628,"avatar_url":"https://avatars.githubusercontent.com/u/181628?v=3","gravatar_id":"","url":"https://api.github.com/users/nschloe","html_url":"https://github.com/nschloe","followers_url":"https://api.github.com/users/nschloe/followers","following_url":"https://api.github.com/users/nschloe/following{/other_user}","gists_url":"https://api.github.com/users/nschloe/gists{/gist_id}","starred_url":"https://api.github.com/users/nschloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nschloe/subscriptions","organizations_url":"https://api.github.com/users/nschloe/orgs","repos_url":"https://api.github.com/users/nschloe/repos","events_url":"https://api.github.com/users/nschloe/events{/privacy}","received_events_url":"https://api.github.com/users/nschloe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/pdf.js/labels/1-other","name":"1-other","color":"DDDDDD"},{"url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-information-requested","name":"4-information-requested","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-13T22:54:48Z","updated_at":"2015-01-14T15:33:52Z","closed_at":null,"body":"I would like to determine the margins of the text in a PDF document. One possibility would be to render the PDF and look at the text layer of each page, specifically the positionins of their `div` children (which represent rows of text).\r\nThat strikes me as a little too cumbersome, though. Is there a way to retrieve the bounding box of all text on a page from the `PDFJS` object?"},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/69933691","html_url":"https://github.com/mozilla/pdf.js/issues/5643#issuecomment-69933691","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/5643","id":69933691,"user":{"login":"nschloe","id":181628,"avatar_url":"https://avatars.githubusercontent.com/u/181628?v=3","gravatar_id":"","url":"https://api.github.com/users/nschloe","html_url":"https://github.com/nschloe","followers_url":"https://api.github.com/users/nschloe/followers","following_url":"https://api.github.com/users/nschloe/following{/other_user}","gists_url":"https://api.github.com/users/nschloe/gists{/gist_id}","starred_url":"https://api.github.com/users/nschloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nschloe/subscriptions","organizations_url":"https://api.github.com/users/nschloe/orgs","repos_url":"https://api.github.com/users/nschloe/repos","events_url":"https://api.github.com/users/nschloe/events{/privacy}","received_events_url":"https://api.github.com/users/nschloe/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T15:33:52Z","updated_at":"2015-01-14T15:33:52Z","body":"Is the unit of the translations is `px` or some PDF-related unit (e.g., `in`)?"}}