{"action":"opened","issue":{"url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/1449","repository_url":"https://api.github.com/repos/PHPOffice/PHPWord","labels_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/1449/labels{/name}","comments_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/1449/comments","events_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/1449/events","html_url":"https://github.com/PHPOffice/PHPWord/issues/1449","id":349734740,"node_id":"MDU6SXNzdWUzNDk3MzQ3NDA=","number":1449,"title":"Help wanted to create document using template.","user":{"login":"theenescresta","id":33285099,"node_id":"MDQ6VXNlcjMzMjg1MDk5","avatar_url":"https://avatars1.githubusercontent.com/u/33285099?v=4","gravatar_id":"","url":"https://api.github.com/users/theenescresta","html_url":"https://github.com/theenescresta","followers_url":"https://api.github.com/users/theenescresta/followers","following_url":"https://api.github.com/users/theenescresta/following{/other_user}","gists_url":"https://api.github.com/users/theenescresta/gists{/gist_id}","starred_url":"https://api.github.com/users/theenescresta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theenescresta/subscriptions","organizations_url":"https://api.github.com/users/theenescresta/orgs","repos_url":"https://api.github.com/users/theenescresta/repos","events_url":"https://api.github.com/users/theenescresta/events{/privacy}","received_events_url":"https://api.github.com/users/theenescresta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-11T13:38:40Z","updated_at":"2018-08-11T13:38:40Z","closed_at":null,"author_association":"NONE","body":"I am using PHPword to generate the word documents. I  want to generate multiple documents so that I want to use the template. I tried this code in the controller\r\n        $templateProcessor = new TemplateProcessor('resources/Sample_07_TemplateCloneRow.docx');\r\n        $templateProcessor->setValue('Name', 'John Doe');\r\n        $templateProcessor->setValue(array('City', 'Street'), array('Detroit', '12th Street'));\r\nand following error is displayed:\r\ncopy(resources/Sample_07_TemplateCloneRow.docx): failed to open stream: No such file or directory\r\n\r\nat :\r\n    // Template file cloning\r\n        if (false === copy($documentTemplate, $this->tempDocumentFilename)) {\r\n            throw new CopyFileException($documentTemplate, $this->tempDocumentFilename);\r\n        }\r\n \r\nWhat is the default directory of Template Processor? or we have to give location manually. Please help!\r\n\r\n* PHP version:7.0 laravel 5.5\r\n* PHPWord version: 0.14\r\n"}}
{"actor":{"display_login":"theenescresta"}}