{"action":"created","issue":{"url":"https://api.github.com/repos/opencloset/opencloset/issues/778","repository_url":"https://api.github.com/repos/opencloset/opencloset","labels_url":"https://api.github.com/repos/opencloset/opencloset/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/opencloset/opencloset/issues/778/comments","events_url":"https://api.github.com/repos/opencloset/opencloset/issues/778/events","html_url":"https://github.com/opencloset/opencloset/pull/778","id":146825282,"number":778,"title":"의류의 프린트","user":{"login":"aanoaa","id":170528,"avatar_url":"https://avatars.githubusercontent.com/u/170528?v=3","gravatar_id":"","url":"https://api.github.com/users/aanoaa","html_url":"https://github.com/aanoaa","followers_url":"https://api.github.com/users/aanoaa/followers","following_url":"https://api.github.com/users/aanoaa/following{/other_user}","gists_url":"https://api.github.com/users/aanoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/aanoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aanoaa/subscriptions","organizations_url":"https://api.github.com/users/aanoaa/orgs","repos_url":"https://api.github.com/users/aanoaa/repos","events_url":"https://api.github.com/users/aanoaa/events{/privacy}","received_events_url":"https://api.github.com/users/aanoaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"keedi","id":138451,"avatar_url":"https://avatars.githubusercontent.com/u/138451?v=3","gravatar_id":"","url":"https://api.github.com/users/keedi","html_url":"https://github.com/keedi","followers_url":"https://api.github.com/users/keedi/followers","following_url":"https://api.github.com/users/keedi/following{/other_user}","gists_url":"https://api.github.com/users/keedi/gists{/gist_id}","starred_url":"https://api.github.com/users/keedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keedi/subscriptions","organizations_url":"https://api.github.com/users/keedi/orgs","repos_url":"https://api.github.com/users/keedi/repos","events_url":"https://api.github.com/users/keedi/events{/privacy}","received_events_url":"https://api.github.com/users/keedi/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2016-04-08T06:14:52Z","updated_at":"2016-04-25T13:23:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opencloset/opencloset/pulls/778","html_url":"https://github.com/opencloset/opencloset/pull/778","diff_url":"https://github.com/opencloset/opencloset/pull/778.diff","patch_url":"https://github.com/opencloset/opencloset/pull/778.patch"},"body":"![2016-04-08 11 57 22](https://cloud.githubusercontent.com/assets/4696328/14373075/7d1c6e1e-fd81-11e5-8386-91ec7fd4591c.png)\r\n\r\n의류화면에서 인쇄미리보기를 했을때 똑같이 나와야 합니다.\r\n`print.less` 파일에서 컨트롤 할 수 있을 것 같습니다."},"comment":{"url":"https://api.github.com/repos/opencloset/opencloset/issues/comments/214324107","html_url":"https://github.com/opencloset/opencloset/pull/778#issuecomment-214324107","issue_url":"https://api.github.com/repos/opencloset/opencloset/issues/778","id":214324107,"user":{"login":"keedi","id":138451,"avatar_url":"https://avatars.githubusercontent.com/u/138451?v=3","gravatar_id":"","url":"https://api.github.com/users/keedi","html_url":"https://github.com/keedi","followers_url":"https://api.github.com/users/keedi/followers","following_url":"https://api.github.com/users/keedi/following{/other_user}","gists_url":"https://api.github.com/users/keedi/gists{/gist_id}","starred_url":"https://api.github.com/users/keedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keedi/subscriptions","organizations_url":"https://api.github.com/users/keedi/orgs","repos_url":"https://api.github.com/users/keedi/repos","events_url":"https://api.github.com/users/keedi/events{/privacy}","received_events_url":"https://api.github.com/users/keedi/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T13:23:45Z","updated_at":"2016-04-25T13:23:45Z","body":"[jsPDF](https://github.com/MrRio/jsPDF) 라이브러리를 고려해서 진행해보았습니다. 관련해서 테이블을 제법 미려하게 그려주는 [jsPDF-AutoTable](https://github.com/simonbengtsson/jsPDF-AutoTable) 플러그인이 있어 둘을 조합해보았습니다. 다만 결정적으로 유니코드를 지원하지 않는 문제가 있어 jsPDF는 더이상 고려하지 않기로 했습니다.\r\n\r\nhttps://github.com/MrRio/jsPDF/issues/12\r\n\r\n상기 링크를 보면 단순히 업데이트의 문제가 아니라 유니코드 지원과 관련해 특별한 의지가 없어보입니다. 해당 라이브러리는 더이상 고려하지 않을 계획이나 기록차 확인한 내용은 남겨둡니다.\r\n\r\njsPDF와 jsPDF-AutoTable을 사용할 경우 pdf를 생성하는 샘플 코드는 다음과 같습니다. 실제로 동작함을 확인했습니다.\r\n\r\n```html\r\n<!doctype html>\r\n<html lang=\"en\">\r\n<head>\r\n  <meta charset=\"utf-8\">\r\n  <title>my first auto table example</title>\r\n  <script src=\"jspdf.min.js\"></script>\r\n  <script src=\"jspdf.plugin.autotable.js\"></script>\r\n</head>\r\n<body>\r\n\r\n  <script type=\"text/javascript\" charset=\"utf-8\">\r\nvar columns = [\"ID\", \"Name\", \"Country\"];\r\nvar rows = [\r\n    [1, \"Shaw\", \"Tanzania\"],\r\n    [2, \"Nelson\", \"Kazakhstan\"],\r\n    [3, \"Garcia\", \"Madagascar\"]\r\n];\r\n\r\nvar doc = new jsPDF('p', 'pt', [210, 595]);\r\ndoc.autoTable(columns, rows);\r\ndoc.save('table.pdf');\r\n  </script>\r\n\r\n</body>\r\n</html>\r\n```\r\n\r\n생성한 PDF를 열어서 정보를 확인한 화면 갈무리 내역은 다음과 같습니다.\r\n\r\n![jspdf](https://cloud.githubusercontent.com/assets/138451/14785164/48bf0634-0b34-11e6-980a-f6eeb5d4943b.png)\r\n"}}