{"action":"created","issue":{"url":"https://api.github.com/repos/jcupitt/libvips/issues/379","repository_url":"https://api.github.com/repos/jcupitt/libvips","labels_url":"https://api.github.com/repos/jcupitt/libvips/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/jcupitt/libvips/issues/379/comments","events_url":"https://api.github.com/repos/jcupitt/libvips/issues/379/events","html_url":"https://github.com/jcupitt/libvips/issues/379","id":131801358,"number":379,"title":"Better PDF support","user":{"login":"felixbuenemann","id":909587,"avatar_url":"https://avatars.githubusercontent.com/u/909587?v=3","gravatar_id":"","url":"https://api.github.com/users/felixbuenemann","html_url":"https://github.com/felixbuenemann","followers_url":"https://api.github.com/users/felixbuenemann/followers","following_url":"https://api.github.com/users/felixbuenemann/following{/other_user}","gists_url":"https://api.github.com/users/felixbuenemann/gists{/gist_id}","starred_url":"https://api.github.com/users/felixbuenemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixbuenemann/subscriptions","organizations_url":"https://api.github.com/users/felixbuenemann/orgs","repos_url":"https://api.github.com/users/felixbuenemann/repos","events_url":"https://api.github.com/users/felixbuenemann/events{/privacy}","received_events_url":"https://api.github.com/users/felixbuenemann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jcupitt/libvips/labels/enhancement","name":"enhancement","color":"0b02e1"},{"url":"https://api.github.com/repos/jcupitt/libvips/labels/in%20development","name":"in development","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":46,"created_at":"2016-02-06T01:06:18Z","updated_at":"2016-02-18T12:58:20Z","closed_at":"2016-02-10T14:38:51Z","body":"It would be great if libvips had a direct binding to a pdf library to allow efficient generation of eg. thumbnails from PDFs.\r\n\r\nvips currently can read pdfs via imagemagick or graphicksmagic, but both of these are very slow and memory inefficient at that.\r\n\r\nI think a good candidate could be libpoppler which has a cairo output device ([Usage in pdftocairo utility](http://cgit.freedesktop.org/poppler/poppler/tree/utils/pdftocairo.cc))."},"comment":{"url":"https://api.github.com/repos/jcupitt/libvips/issues/comments/185708384","html_url":"https://github.com/jcupitt/libvips/issues/379#issuecomment-185708384","issue_url":"https://api.github.com/repos/jcupitt/libvips/issues/379","id":185708384,"user":{"login":"jcupitt","id":580843,"avatar_url":"https://avatars.githubusercontent.com/u/580843?v=3","gravatar_id":"","url":"https://api.github.com/users/jcupitt","html_url":"https://github.com/jcupitt","followers_url":"https://api.github.com/users/jcupitt/followers","following_url":"https://api.github.com/users/jcupitt/following{/other_user}","gists_url":"https://api.github.com/users/jcupitt/gists{/gist_id}","starred_url":"https://api.github.com/users/jcupitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcupitt/subscriptions","organizations_url":"https://api.github.com/users/jcupitt/orgs","repos_url":"https://api.github.com/users/jcupitt/repos","events_url":"https://api.github.com/users/jcupitt/events{/privacy}","received_events_url":"https://api.github.com/users/jcupitt/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T12:58:20Z","updated_at":"2016-02-18T12:58:20Z","body":"I finally figured out how to do this, git master vips is now much quicker. It was about 7s, but it's now:\r\n\r\n```\r\n$ time vips magickload nipguide.pdf x.png\r\nreal\t0m0.213s\r\nuser\t0m0.212s\r\nsys\t0m0.020s\r\n$ time vips pdfload nipguide.pdf x.png\r\nreal\t0m0.076s\r\nuser\t0m0.068s\r\nsys\t0m0.016s\r\n```\r\n\r\nThough not quite as fast as the direct call to libpoppler. I'll update that blog post. "}}