{"action":"created","issue":{"url":"https://api.github.com/repos/jordanbyron/prawn-labels/issues/29","labels_url":"https://api.github.com/repos/jordanbyron/prawn-labels/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/jordanbyron/prawn-labels/issues/29/comments","events_url":"https://api.github.com/repos/jordanbyron/prawn-labels/issues/29/events","html_url":"https://github.com/jordanbyron/prawn-labels/issues/29","id":73670068,"number":29,"title":"Can't generate label","user":{"login":"joaoribeirost","id":1270437,"avatar_url":"https://avatars.githubusercontent.com/u/1270437?v=3","gravatar_id":"","url":"https://api.github.com/users/joaoribeirost","html_url":"https://github.com/joaoribeirost","followers_url":"https://api.github.com/users/joaoribeirost/followers","following_url":"https://api.github.com/users/joaoribeirost/following{/other_user}","gists_url":"https://api.github.com/users/joaoribeirost/gists{/gist_id}","starred_url":"https://api.github.com/users/joaoribeirost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaoribeirost/subscriptions","organizations_url":"https://api.github.com/users/joaoribeirost/orgs","repos_url":"https://api.github.com/users/joaoribeirost/repos","events_url":"https://api.github.com/users/joaoribeirost/events{/privacy}","received_events_url":"https://api.github.com/users/joaoribeirost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-06T16:25:21Z","updated_at":"2015-05-06T22:59:26Z","closed_at":"2015-05-06T22:59:26Z","body":"I've added the names example in a view with the extension .pdf.prawn, it iterates all the names but it doesn't output the labels on the page! I'm feeling a little dumb not being able to make it work.\r\n\r\nIf i have this:\r\n```ruby\r\nrequire 'prawn/labels'\r\n\r\nnames = [\"Jordan\", \"Chris\", \"Jon\", \"Mike\", \"Kelly\", \"Bob\", \"Greg\"]\r\n\r\nPrawn::Labels.generate(\"list.pdf\", names, :type => \"Avery7160\") do |pdf, name|\r\n  puts \"In\"\r\n  pdf.text name\r\n  \r\nend\r\npdf.text names.inspect\r\n\r\n```\r\n It will print \"In\" for each name, and generate a pdf with the Names array. However it will not generate the labels."},"comment":{"url":"https://api.github.com/repos/jordanbyron/prawn-labels/issues/comments/99636448","html_url":"https://github.com/jordanbyron/prawn-labels/issues/29#issuecomment-99636448","issue_url":"https://api.github.com/repos/jordanbyron/prawn-labels/issues/29","id":99636448,"user":{"login":"jordanbyron","id":40662,"avatar_url":"https://avatars.githubusercontent.com/u/40662?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanbyron","html_url":"https://github.com/jordanbyron","followers_url":"https://api.github.com/users/jordanbyron/followers","following_url":"https://api.github.com/users/jordanbyron/following{/other_user}","gists_url":"https://api.github.com/users/jordanbyron/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanbyron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanbyron/subscriptions","organizations_url":"https://api.github.com/users/jordanbyron/orgs","repos_url":"https://api.github.com/users/jordanbyron/repos","events_url":"https://api.github.com/users/jordanbyron/events{/privacy}","received_events_url":"https://api.github.com/users/jordanbyron/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T22:59:26Z","updated_at":"2015-05-06T22:59:26Z","body":"Great! To get the PDF to be sent inline just add the `:disposition => \"inline\"` option to the `send_data` method:\r\n\r\n```ruby\r\nsend_data labels, :filename    => \"names.pdf\", \r\n                  :type        => \"application/pdf\", \r\n                  :disposition => \"inline\"\r\n```\r\n\r\nGood luck!"}}