{"action":"created","issue":{"url":"https://api.github.com/repos/bpampuch/pdfmake/issues/940","repository_url":"https://api.github.com/repos/bpampuch/pdfmake","labels_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/940/labels{/name}","comments_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/940/comments","events_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/940/events","html_url":"https://github.com/bpampuch/pdfmake/issues/940","id":219575589,"number":940,"title":"Not able to generate pdf report of huge data having more than 100 pages.","user":{"login":"sunilkumarsingh","id":6112878,"avatar_url":"https://avatars1.githubusercontent.com/u/6112878?v=3","gravatar_id":"","url":"https://api.github.com/users/sunilkumarsingh","html_url":"https://github.com/sunilkumarsingh","followers_url":"https://api.github.com/users/sunilkumarsingh/followers","following_url":"https://api.github.com/users/sunilkumarsingh/following{/other_user}","gists_url":"https://api.github.com/users/sunilkumarsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/sunilkumarsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunilkumarsingh/subscriptions","organizations_url":"https://api.github.com/users/sunilkumarsingh/orgs","repos_url":"https://api.github.com/users/sunilkumarsingh/repos","events_url":"https://api.github.com/users/sunilkumarsingh/events{/privacy}","received_events_url":"https://api.github.com/users/sunilkumarsingh/received_events","type":"User","site_admin":false},"labels":[{"id":212856641,"url":"https://api.github.com/repos/bpampuch/pdfmake/labels/waiting%20for%20information","name":"waiting for information","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-05T13:05:03Z","updated_at":"2017-04-18T06:42:05Z","closed_at":null,"body":"Hi All,\r\n\r\nI am using pdfmake to download PDF of report on client side, in my report there are many tables that I am creating dynamically using object format.\r\nMy report PDF size my be 100-150 page but its creates only 38 pages.\r\n\r\nI used the following solution given by you people and changed in pdfmake.js file **but issue remains same**.\r\n\r\nfunction flow(stream) {\r\n       var state = stream._readableState;\r\n       debug('flow', state.flowing);\r\n       if (state.flowing) {\r\n         do {\r\n           var chunk = stream.read(Number.MAX_SAFE_INTEGER); // grab MAX_SAFE_INTEGER bytes\r\n         } while (null !== chunk && state.flowing);\r\n       }\r\n  }\r\n\r\n\r\n**My docDefinition  is given below like where summary() and datailed() are two functions that i am using to  get huge data in multiple table format .**\r\n\r\n    var docDefinition = {\r\n        footer: function (currentPage, pageCount) {\r\n            return currentPage.toString() + ' of ' + pageCount;\r\n        },\r\n        content: [\r\n            {\r\n                style: 'tableExample',\r\n                table: summary(data)\r\n            },\r\n            datailed(data)\r\n        ],\r\n        // style of contest here.\r\n        styles: {\r\n            header: {\r\n                fontSize: 18,\r\n                bold: true,\r\n                margin: [0, 0, 0, 10]\r\n            },\r\n            subheader: {\r\n                fontSize: 16,\r\n                bold: true,\r\n                margin: [0, 10, 0, 5],\r\n                alignment: 'center'\r\n            },\r\n            tableExample: {\r\n                margin: [0, 5, 0, 15]\r\n            },\r\n            tableHeader: {\r\n                bold: true,\r\n                fontSize: 13,\r\n                color: 'black'\r\n            }\r\n        },\r\n        defaultStyle: {\r\n            // alignment: 'justify'\r\n        }\r\n    };\r\n\r\n\r\n**Please provide any solution if you buddy have.**\r\n"},"comment":{"url":"https://api.github.com/repos/bpampuch/pdfmake/issues/comments/294703491","html_url":"https://github.com/bpampuch/pdfmake/issues/940#issuecomment-294703491","issue_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/940","id":294703491,"user":{"login":"sunilkumarsingh","id":6112878,"avatar_url":"https://avatars1.githubusercontent.com/u/6112878?v=3","gravatar_id":"","url":"https://api.github.com/users/sunilkumarsingh","html_url":"https://github.com/sunilkumarsingh","followers_url":"https://api.github.com/users/sunilkumarsingh/followers","following_url":"https://api.github.com/users/sunilkumarsingh/following{/other_user}","gists_url":"https://api.github.com/users/sunilkumarsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/sunilkumarsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunilkumarsingh/subscriptions","organizations_url":"https://api.github.com/users/sunilkumarsingh/orgs","repos_url":"https://api.github.com/users/sunilkumarsingh/repos","events_url":"https://api.github.com/users/sunilkumarsingh/events{/privacy}","received_events_url":"https://api.github.com/users/sunilkumarsingh/received_events","type":"User","site_admin":false},"created_at":"2017-04-18T06:42:05Z","updated_at":"2017-04-18T06:42:05Z","body":"Thanks for your update.\r\nI will check my dynamic contents."}}
{"actor":{"display_login":"sunilkumarsingh"}}