{"action":"created","issue":{"url":"https://api.github.com/repos/dhorions/boxable/issues/58","repository_url":"https://api.github.com/repos/dhorions/boxable","labels_url":"https://api.github.com/repos/dhorions/boxable/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/dhorions/boxable/issues/58/comments","events_url":"https://api.github.com/repos/dhorions/boxable/issues/58/events","html_url":"https://github.com/dhorions/boxable/pull/58","id":154187040,"number":58,"title":"Line spacing (issue-56)","user":{"login":"Frulenzo","id":4593056,"avatar_url":"https://avatars.githubusercontent.com/u/4593056?v=3","gravatar_id":"","url":"https://api.github.com/users/Frulenzo","html_url":"https://github.com/Frulenzo","followers_url":"https://api.github.com/users/Frulenzo/followers","following_url":"https://api.github.com/users/Frulenzo/following{/other_user}","gists_url":"https://api.github.com/users/Frulenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/Frulenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frulenzo/subscriptions","organizations_url":"https://api.github.com/users/Frulenzo/orgs","repos_url":"https://api.github.com/users/Frulenzo/repos","events_url":"https://api.github.com/users/Frulenzo/events{/privacy}","received_events_url":"https://api.github.com/users/Frulenzo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T08:26:43Z","updated_at":"2016-06-07T08:59:39Z","closed_at":"2016-06-02T18:41:15Z","pull_request":{"url":"https://api.github.com/repos/dhorions/boxable/pulls/58","html_url":"https://github.com/dhorions/boxable/pull/58","diff_url":"https://github.com/dhorions/boxable/pull/58.diff","patch_url":"https://github.com/dhorions/boxable/pull/58.patch"},"body":"So this is done ( issue #56 )\r\nI implemented that in a way where line spacing can be set on whole table, particular row or particular cell.\r\nSomething like\r\n\r\n```java\r\n[...]\r\n//Initialize table\r\nBaseTable table = new BaseTable(yStart, yStartNewPage, bottomMargin, tableWidth, margin, doc, page, drawLines,\r\n\t\t\t\tdrawContent);\r\n\r\n// set default line spacing for entire table\r\ntable.setLineSpacing(1.5f);\r\n[..]\r\n// set single spacing for entire row\r\nRow<PDPage> row = table.createRow(100f);\r\nrow.setLineSpacing(1f);\r\n[...]\r\n// set double line spacing for this particular cell\r\n[lineSpacingTest.pdf](https://github.com/dhorions/boxable/files/258859/lineSpacingTest.pdf)\r\n\r\nCell<PDPage> cell = row.createCell((100 / 3f),\r\n\t\t\t\t\"insert text here\",\r\n\t\t\t\tHorizontalAlignment.get(\"center\"), VerticalAlignment.get(\"bottom\"));\r\n\t\tcell.setFontSize(6);\r\ncell.setLineSpacing(2f);\r\n```\r\nPDF output from test case\r\n[lineSpacingTest.pdf](https://github.com/dhorions/boxable/files/258860/lineSpacingTest.pdf)\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dhorions/boxable/issues/comments/224221068","html_url":"https://github.com/dhorions/boxable/pull/58#issuecomment-224221068","issue_url":"https://api.github.com/repos/dhorions/boxable/issues/58","id":224221068,"user":{"login":"chris938626","id":18146626,"avatar_url":"https://avatars.githubusercontent.com/u/18146626?v=3","gravatar_id":"","url":"https://api.github.com/users/chris938626","html_url":"https://github.com/chris938626","followers_url":"https://api.github.com/users/chris938626/followers","following_url":"https://api.github.com/users/chris938626/following{/other_user}","gists_url":"https://api.github.com/users/chris938626/gists{/gist_id}","starred_url":"https://api.github.com/users/chris938626/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris938626/subscriptions","organizations_url":"https://api.github.com/users/chris938626/orgs","repos_url":"https://api.github.com/users/chris938626/repos","events_url":"https://api.github.com/users/chris938626/events{/privacy}","received_events_url":"https://api.github.com/users/chris938626/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T08:59:39Z","updated_at":"2016-06-07T08:59:39Z","body":"Hey, thank you for this pull request. I need this feature ;)"}}
{"actor":{"display_login":"chris938626"}}