{"action":"created","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/10373","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/10373/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/10373/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/10373/events","html_url":"https://github.com/ariya/phantomjs/issues/10373","id":12086283,"number":10373,"title":"Running the pdf example produces a pdf with no selectable text","user":{"login":"blairvanderhoof","id":833890,"avatar_url":"https://avatars.githubusercontent.com/u/833890?v=3","gravatar_id":"","url":"https://api.github.com/users/blairvanderhoof","html_url":"https://github.com/blairvanderhoof","followers_url":"https://api.github.com/users/blairvanderhoof/followers","following_url":"https://api.github.com/users/blairvanderhoof/following{/other_user}","gists_url":"https://api.github.com/users/blairvanderhoof/gists{/gist_id}","starred_url":"https://api.github.com/users/blairvanderhoof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blairvanderhoof/subscriptions","organizations_url":"https://api.github.com/users/blairvanderhoof/orgs","repos_url":"https://api.github.com/users/blairvanderhoof/repos","events_url":"https://api.github.com/users/blairvanderhoof/events{/privacy}","received_events_url":"https://api.github.com/users/blairvanderhoof/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ariya/phantomjs/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/Status-New","name":"Status-New","color":"ededed"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2012-02-07T14:17:22Z","updated_at":"2015-01-05T11:27:30Z","closed_at":null,"body":"_**[bla...@gmail.com](http://code.google.com/u/109105014541000086420/) commented:**_\r\n> <b>Which version of PhantomJS are you using? Tip: run 'phantomjs --version'.</b>\n1.4.1\r\n> \r\n> <b>What steps will reproduce the problem?</b>\n1. phantomjs rasterize.js 'http://en.wikipedia.org/w/index.php?title=Jakarta&amp;printable=yes' jakarta.pdf\r\n> 2. Look at result and try to select text\r\n> 3. Impossible to select text\r\n> \r\n> <b>What is the expected output? What do you see instead?</b>\noutput is a pdf.  i expect to see pdf and ability to select the text.\r\n> \r\n> <b>Which operating system are you using?</b>\nosx\r\n> \r\n> <b>Did you use binary PhantomJS or did you compile it from source?</b>\nbinary\r\n> \r\n> <b>Please provide any additional information below.</b>\nAre you supposed to be able to select the text for the pdf?  If not then what is the purpose?  Thanks!\r\n\r\n**Disclaimer:**\r\nThis issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, [Issue #373](http://code.google.com/p/phantomjs/issues/detail?id=373).\r\n:star2: &nbsp; **14** people had starred this issue at the time of migration."},"comment":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/comments/68696450","html_url":"https://github.com/ariya/phantomjs/issues/10373#issuecomment-68696450","issue_url":"https://api.github.com/repos/ariya/phantomjs/issues/10373","id":68696450,"user":{"login":"aidos","id":91913,"avatar_url":"https://avatars.githubusercontent.com/u/91913?v=3","gravatar_id":"","url":"https://api.github.com/users/aidos","html_url":"https://github.com/aidos","followers_url":"https://api.github.com/users/aidos/followers","following_url":"https://api.github.com/users/aidos/following{/other_user}","gists_url":"https://api.github.com/users/aidos/gists{/gist_id}","starred_url":"https://api.github.com/users/aidos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidos/subscriptions","organizations_url":"https://api.github.com/users/aidos/orgs","repos_url":"https://api.github.com/users/aidos/repos","events_url":"https://api.github.com/users/aidos/events{/privacy}","received_events_url":"https://api.github.com/users/aidos/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T11:27:30Z","updated_at":"2015-01-05T11:27:30Z","body":"It's not working on Linux for me (2.0.0).\r\n\r\nI discovered that as long as you don't embed the fonts in the SVG they render as text. I guess you need to have them registered and available within the system but that gets into some Linux font madness that I couldn't quite figure out.\r\n\r\nI was trying to take my embedded fonts, strip them from the SVG, register them temporarily as system fonts, render the PDF, then deregister the fonts again. I think there's a work around there - hopefully someone who knows a little more about font management in Linux knows how to make this pattern work.\r\n"}}