{"action":"opened","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/310","repository_url":"https://api.github.com/repos/barryvdh/laravel-dompdf","labels_url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/310/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-dompdf/issues/310/events","html_url":"https://github.com/barryvdh/laravel-dompdf/issues/310","id":203510971,"number":310,"title":"PDF Garbled","user":{"login":"judahnator","id":8620392,"avatar_url":"https://avatars.githubusercontent.com/u/8620392?v=3","gravatar_id":"","url":"https://api.github.com/users/judahnator","html_url":"https://github.com/judahnator","followers_url":"https://api.github.com/users/judahnator/followers","following_url":"https://api.github.com/users/judahnator/following{/other_user}","gists_url":"https://api.github.com/users/judahnator/gists{/gist_id}","starred_url":"https://api.github.com/users/judahnator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judahnator/subscriptions","organizations_url":"https://api.github.com/users/judahnator/orgs","repos_url":"https://api.github.com/users/judahnator/repos","events_url":"https://api.github.com/users/judahnator/events{/privacy}","received_events_url":"https://api.github.com/users/judahnator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-26T22:42:03Z","updated_at":"2017-01-26T22:42:03Z","closed_at":null,"body":"Hello!\r\n\r\nI just upgraded my Laravel install from 5.1 to 5.3, and updated this package from the 0.6 branch. I am also using PHP 7.1.0-2.\r\n\r\nNothing was wrong before the upgrade, but now all the PDFs being generated look garbled. If I use this code I get a result like this:\r\n[Order_840.pdf](https://github.com/barryvdh/laravel-dompdf/files/733769/Order_840.pdf)\r\n\r\n```php\r\n$pdf = PDF::loadView( 'orders.order_pdf', [ 'array' => 'elements'] );\r\n\r\n$pdf->stream('filename');\r\n```\r\n\r\nThe funny thing is if I simply return the view it works perfectly fine.\r\n\r\n```php\r\nreturn view('orders.order_pdf', ['array' => 'elements'] );\r\n```\r\n\r\nIs this a known issue? Im not even sure where to start when troubleshooting this.\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"judahnator"}}