ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

exporterPdfPageSize not working

Open edenchen123 opened this issue 12 years ago • 3 comments

ui.grid.exporter --> GridOptions -->exporterPdfPageSize not working

root cause: forgot to set it to pdfmake config

var docDefinition = { pageOrientation: grid.options.exporterPdfOrientation, //add this line pageSize: grid.options.exporterPdfPageSize, content: [{ style: 'tableStyle', table: { headerRows: 1, widths: headerWidths, body: allData } }], styles: { tableStyle: grid.options.exporterPdfTableStyle, tableHeader: grid.options.exporterPdfTableHeaderStyle }, defaultStyle: grid.options.exporterPdfDefaultStyle };

edenchen123 avatar Oct 30 '14 17:10 edenchen123

Excellent thanks, fixed.

PaulL1 avatar Oct 30 '14 19:10 PaulL1

same as exporterPdfHeader

edenchen123 avatar Oct 30 '14 21:10 edenchen123

Sorry, not sure I follow that comment?

PaulL1 avatar Oct 30 '14 21:10 PaulL1