{"action":"created","issue":{"url":"https://api.github.com/repos/dompdf/dompdf/issues/1102","repository_url":"https://api.github.com/repos/dompdf/dompdf","labels_url":"https://api.github.com/repos/dompdf/dompdf/issues/1102/labels{/name}","comments_url":"https://api.github.com/repos/dompdf/dompdf/issues/1102/comments","events_url":"https://api.github.com/repos/dompdf/dompdf/issues/1102/events","html_url":"https://github.com/dompdf/dompdf/issues/1102","id":132244964,"number":1102,"title":"Invalid PDF structure","user":{"login":"bernhardhas","id":17129405,"avatar_url":"https://avatars.githubusercontent.com/u/17129405?v=3","gravatar_id":"","url":"https://api.github.com/users/bernhardhas","html_url":"https://github.com/bernhardhas","followers_url":"https://api.github.com/users/bernhardhas/followers","following_url":"https://api.github.com/users/bernhardhas/following{/other_user}","gists_url":"https://api.github.com/users/bernhardhas/gists{/gist_id}","starred_url":"https://api.github.com/users/bernhardhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernhardhas/subscriptions","organizations_url":"https://api.github.com/users/bernhardhas/orgs","repos_url":"https://api.github.com/users/bernhardhas/repos","events_url":"https://api.github.com/users/bernhardhas/events{/privacy}","received_events_url":"https://api.github.com/users/bernhardhas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-08T20:11:49Z","updated_at":"2016-02-09T13:57:11Z","closed_at":null,"body":"I have a problem when showing the generated PDF with pdf.js and parsing them with \"PDF Parser\".\r\nError: Invalid PDF structure\r\n\r\nAdobe-Reader will show and print the pdf-file correctly.\r\n\r\nI have tested the latest versions: 0.6.2 (stable), 0.7.0 (beta3)\r\n\r\nNeed Help....\r\n\r\nThank you !!!\r\n"},"comment":{"url":"https://api.github.com/repos/dompdf/dompdf/issues/comments/181874031","html_url":"https://github.com/dompdf/dompdf/issues/1102#issuecomment-181874031","issue_url":"https://api.github.com/repos/dompdf/dompdf/issues/1102","id":181874031,"user":{"login":"bsweeney","id":485897,"avatar_url":"https://avatars.githubusercontent.com/u/485897?v=3","gravatar_id":"","url":"https://api.github.com/users/bsweeney","html_url":"https://github.com/bsweeney","followers_url":"https://api.github.com/users/bsweeney/followers","following_url":"https://api.github.com/users/bsweeney/following{/other_user}","gists_url":"https://api.github.com/users/bsweeney/gists{/gist_id}","starred_url":"https://api.github.com/users/bsweeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsweeney/subscriptions","organizations_url":"https://api.github.com/users/bsweeney/orgs","repos_url":"https://api.github.com/users/bsweeney/repos","events_url":"https://api.github.com/users/bsweeney/events{/privacy}","received_events_url":"https://api.github.com/users/bsweeney/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T13:57:11Z","updated_at":"2016-02-09T13:57:11Z","body":"I haven't seen the same issue using Firefox (whose reader is based on pdf.js). Can you upload a sample PDF?\r\n\r\nAs for auto-height. It's a bit difficult to do right now. The workaround I've used is to define a custom page size, render the document, count the pages, calculate the height of the content, render again with a new custom size."}}