2017-12-14 6 views
0

私はui-grid export pdfを使用しますが、最後のカラムは常に半分になります。私が設定したページサイズに関係なく。ui-grid export pdfカラムを取得する

私の周りに検索する、いくつかのいずれかがexporterPdfOrientation設定し、言った:それは私のために動作しません

$scope.gridOptions = { ... exporterPdfOrientation: 'landscape', ...} 

で '風景'、 を。

enter image description here

答えて

0

多くの試みの後:私は解決策を見つけたは減少exporterPdfMaxGridWidthです:600、

exporterPdf configuration source code

exporterPdf pagesizeここ

$scope.gridOptions = { 
    exporterPdfOrientation: 'landscape', 
    exporterPdfPageSize:'A4', // exporterPdfMaxGridWidth = Defaults to 720 (for A4 landscape), use 670 for LETTER 
    // page size see --- https://github.com/bpampuch/pdfmake/blob/master/src/standardPageSizes.js 

    exporterPdfMaxGridWidth: 600, // bug, for A4, default is 720, set to 600 solve my problem.      

は結果であり、これ以上の削減列 enter image description here

関連する問題