Angularjs ui-grid exporterPdfCustomFormatter function fails -
the illustration code angularjs ui-grid pdf exporter tutorial lesson 206 works great on official page. when re-create code , run ... or run in plunker ... briefly opens tab pdf output , closes tab.
after much debugging, discovered removing exporterpdfcustomformatter setting solves problem. in fact, can set either of other 2 examples in api reference (simple text or column definition), setting function (such required page numbers) fails. there discrepancy between utilize of pagecount here , official pdfmake site, turns out irrelevant: function fails.
i don't understand why working on official site, appears identical code doesn't work me or plunker.
i came across same problem. work remove exporterpdfcustomformatter app.js
//exporterpdfcustomformatter: function ( docdefinition ) { // docdefinition.styles.headerstyle = { fontsize: 22, bold: true }; // docdefinition.styles.footerstyle = { fontsize: 10, bold: true }; // homecoming docdefinition; // }, angularjs angular-ui-grid pdfmake
No comments:
Post a Comment