{"action":"created","issue":{"url":"https://api.github.com/repos/neolord0/hwplib/issues/27","repository_url":"https://api.github.com/repos/neolord0/hwplib","labels_url":"https://api.github.com/repos/neolord0/hwplib/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/neolord0/hwplib/issues/27/comments","events_url":"https://api.github.com/repos/neolord0/hwplib/issues/27/events","html_url":"https://github.com/neolord0/hwplib/issues/27","id":343409936,"node_id":"MDU6SXNzdWUzNDM0MDk5MzY=","number":27,"title":"문단 복사관련","user":{"login":"accforaus","id":38602453,"node_id":"MDQ6VXNlcjM4NjAyNDUz","avatar_url":"https://avatars3.githubusercontent.com/u/38602453?v=4","gravatar_id":"","url":"https://api.github.com/users/accforaus","html_url":"https://github.com/accforaus","followers_url":"https://api.github.com/users/accforaus/followers","following_url":"https://api.github.com/users/accforaus/following{/other_user}","gists_url":"https://api.github.com/users/accforaus/gists{/gist_id}","starred_url":"https://api.github.com/users/accforaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/accforaus/subscriptions","organizations_url":"https://api.github.com/users/accforaus/orgs","repos_url":"https://api.github.com/users/accforaus/repos","events_url":"https://api.github.com/users/accforaus/events{/privacy}","received_events_url":"https://api.github.com/users/accforaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-22T14:23:01Z","updated_at":"2018-07-25T00:09:12Z","closed_at":null,"author_association":"NONE","body":"현재 문단을 복사하여 새로운 파일로 옮기려고 하는데 현재는 옮기고자 하는 문단을 ArrayList에 저장하고 새로운 파일을 열어 저장을 해보았는데 파일이 손상되었다는 오류가 발생하네요..\r\n혹시 문단을 그대로 카피하려면 paragraph객체에 옮기고자하는 모든 정보들을 카피해 주어야 하나요? \r\n헤더도 그대로 설정해주고 텍스트나 컨트롤도 대입이 아닌 하나하나 생성후 원본의 정보를 넣어주어야 하나요?\r\n\r\n<pre><code>ArrayList<Paragraph> paragraphs = getParagraphs(2, 3);  // 이런식으로 가져오고나서\r\nSection s = hwp.getBodyText().getSectionList().get(0);\r\nParagraph p =  s.addNewParagrsph();\r\np.createText();\r\np.getText().addString(\"Hello world!\");\r\nHWPWriter.toFile(hwp, 'somewhere'); // 이렇게 하면 저장은 됩니다. 하지만 한글 파일을 열면 손상된 파일이라고 나오네요..</code></pre>\r\n\r\n혹시나 해서 setHeader, setControl, setText등의 메소드를 만들어 일일이 하나하나 대입해보아도.. 손상된 파일이라고만  뜹니다. 제 생각엔 docInfo나 fileHeader에서 설정을 해주어야 겠는데, 잘 모르겠어서 질문드립니다. 요점은, 자바상에서 복사, 붙혀넣기를 하려면 어떻게 해야하는가에 입니다.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/neolord0/hwplib/issues/comments/407591238","html_url":"https://github.com/neolord0/hwplib/issues/27#issuecomment-407591238","issue_url":"https://api.github.com/repos/neolord0/hwplib/issues/27","id":407591238,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzU5MTIzOA==","user":{"login":"neolord0","id":24711108,"node_id":"MDQ6VXNlcjI0NzExMTA4","avatar_url":"https://avatars0.githubusercontent.com/u/24711108?v=4","gravatar_id":"","url":"https://api.github.com/users/neolord0","html_url":"https://github.com/neolord0","followers_url":"https://api.github.com/users/neolord0/followers","following_url":"https://api.github.com/users/neolord0/following{/other_user}","gists_url":"https://api.github.com/users/neolord0/gists{/gist_id}","starred_url":"https://api.github.com/users/neolord0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neolord0/subscriptions","organizations_url":"https://api.github.com/users/neolord0/orgs","repos_url":"https://api.github.com/users/neolord0/repos","events_url":"https://api.github.com/users/neolord0/events{/privacy}","received_events_url":"https://api.github.com/users/neolord0/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T00:09:12Z","updated_at":"2018-07-25T00:09:12Z","author_association":"OWNER","body":"요즘 회사일이 좀 바뻐서 시간이 좀 걸리겠지만, 보내주신 코드는 살펴보겠습니다."}}
{"actor":{"display_login":"neolord0"}}