{"action":"created","issue":{"url":"https://api.github.com/repos/eduardokum/laravel-boleto/issues/260","repository_url":"https://api.github.com/repos/eduardokum/laravel-boleto","labels_url":"https://api.github.com/repos/eduardokum/laravel-boleto/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/eduardokum/laravel-boleto/issues/260/comments","events_url":"https://api.github.com/repos/eduardokum/laravel-boleto/issues/260/events","html_url":"https://github.com/eduardokum/laravel-boleto/issues/260","id":289978493,"number":260,"title":"Problema no Render e PageGroups.","user":{"login":"t0ledoj","id":9754430,"avatar_url":"https://avatars3.githubusercontent.com/u/9754430?v=4","gravatar_id":"","url":"https://api.github.com/users/t0ledoj","html_url":"https://github.com/t0ledoj","followers_url":"https://api.github.com/users/t0ledoj/followers","following_url":"https://api.github.com/users/t0ledoj/following{/other_user}","gists_url":"https://api.github.com/users/t0ledoj/gists{/gist_id}","starred_url":"https://api.github.com/users/t0ledoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t0ledoj/subscriptions","organizations_url":"https://api.github.com/users/t0ledoj/orgs","repos_url":"https://api.github.com/users/t0ledoj/repos","events_url":"https://api.github.com/users/t0ledoj/events{/privacy}","received_events_url":"https://api.github.com/users/t0ledoj/received_events","type":"User","site_admin":false},"labels":[{"id":298784806,"url":"https://api.github.com/repos/eduardokum/laravel-boleto/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"eduardokum","id":2566340,"avatar_url":"https://avatars0.githubusercontent.com/u/2566340?v=4","gravatar_id":"","url":"https://api.github.com/users/eduardokum","html_url":"https://github.com/eduardokum","followers_url":"https://api.github.com/users/eduardokum/followers","following_url":"https://api.github.com/users/eduardokum/following{/other_user}","gists_url":"https://api.github.com/users/eduardokum/gists{/gist_id}","starred_url":"https://api.github.com/users/eduardokum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduardokum/subscriptions","organizations_url":"https://api.github.com/users/eduardokum/orgs","repos_url":"https://api.github.com/users/eduardokum/repos","events_url":"https://api.github.com/users/eduardokum/events{/privacy}","received_events_url":"https://api.github.com/users/eduardokum/received_events","type":"User","site_admin":false},"assignees":[{"login":"eduardokum","id":2566340,"avatar_url":"https://avatars0.githubusercontent.com/u/2566340?v=4","gravatar_id":"","url":"https://api.github.com/users/eduardokum","html_url":"https://github.com/eduardokum","followers_url":"https://api.github.com/users/eduardokum/followers","following_url":"https://api.github.com/users/eduardokum/following{/other_user}","gists_url":"https://api.github.com/users/eduardokum/gists{/gist_id}","starred_url":"https://api.github.com/users/eduardokum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduardokum/subscriptions","organizations_url":"https://api.github.com/users/eduardokum/orgs","repos_url":"https://api.github.com/users/eduardokum/repos","events_url":"https://api.github.com/users/eduardokum/events{/privacy}","received_events_url":"https://api.github.com/users/eduardokum/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-01-19T13:38:56Z","updated_at":"2018-02-21T13:39:48Z","closed_at":"2018-02-21T13:39:48Z","author_association":"NONE","body":"Bom dia,\r\n\r\nAchei esse projeto a algum tempo e achei bem legal a iniciativa, e ontem resolvi testar no sistema que estou fazendo.\r\n\r\nPorém tive problemas na renderização de PDF.\r\n\r\nPara garantir que o problema não era no meu projeto criei um repositório novo do Laravel \r\ni.e. '$laravel new foobar', e baixei o projeto pela linha de comando conforme a documentação.\r\n\r\nE tive os mesmos erros, que são:\r\n\r\n`$boleto->renderPDF();` \r\nAo utilizar o método abaixo para renderizar o PDF individual, é disparado o seguinte erro.\r\nObs.: O mesmo erro ocorre ao tentar renderizar múltiplos, instanciando a classe Pdf, e o método, addBoleto().\r\n![image](https://user-images.githubusercontent.com/9754430/35149106-0d709348-fcfc-11e7-896a-cefd797ce944.png)\r\n\r\n---\r\nAo utilizar o método addBoletos(), segue o código abaixo:\r\n```\r\n$pdf = new Pdf();\r\n$pdf->addBoletos(array($boleto, $boleto, $boleto));\r\n$path = __DIR__.'\\arquivos\\\\'.time();\r\n$pdf->gerarBoleto($pdf::OUTPUT_SAVE, $path);\r\n```\r\nocorre outro erro relacionado ao $this->PageGroups\r\n![image](https://user-images.githubusercontent.com/9754430/35152885-59929bae-fd0b-11e7-824a-20368da111a1.png)\r\n\r\nInfelizmente não tive tempo suficiente para verificar onde isto influência. \r\nMas, aparentemente o PageGroups está com valor null.\r\nComentando as linhas 19,20,21, \r\ne na linha 82 alterar o if\r\n `if ($this->NewPageGroup)` \r\npara: \r\n`if (!$this->NewPageGroup)` \r\ntudo parece funcionar normalmente.\r\n_caminho do arquivo: vendor/eduardokum/laravel-boleto/src/Boleto/Render/AbstractPdf.php_\r\n\r\nObs.: A renderização no formato HTML funciona normalmente, com as alterações ou sem. \r\n\r\nInfos do ambiente:\r\n- Windows 10 x64\r\n- XAMPP com PHP 7.2.0\r\n- Laravel 5.5\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eduardokum/laravel-boleto/issues/comments/367328549","html_url":"https://github.com/eduardokum/laravel-boleto/issues/260#issuecomment-367328549","issue_url":"https://api.github.com/repos/eduardokum/laravel-boleto/issues/260","id":367328549,"user":{"login":"eduardokum","id":2566340,"avatar_url":"https://avatars0.githubusercontent.com/u/2566340?v=4","gravatar_id":"","url":"https://api.github.com/users/eduardokum","html_url":"https://github.com/eduardokum","followers_url":"https://api.github.com/users/eduardokum/followers","following_url":"https://api.github.com/users/eduardokum/following{/other_user}","gists_url":"https://api.github.com/users/eduardokum/gists{/gist_id}","starred_url":"https://api.github.com/users/eduardokum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduardokum/subscriptions","organizations_url":"https://api.github.com/users/eduardokum/orgs","repos_url":"https://api.github.com/users/eduardokum/repos","events_url":"https://api.github.com/users/eduardokum/events{/privacy}","received_events_url":"https://api.github.com/users/eduardokum/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T13:39:48Z","updated_at":"2018-02-21T13:39:48Z","author_association":"OWNER","body":"Desculpe a demora, mais acredito que esteja ok ja\r\n\r\n4d5fabfb59ef65d9e419263f173d9f5a8d2b63d4\r\n\r\nObrigado"}}
{"actor":{"display_login":"eduardokum"}}