2017-12-14 17 views
0

저는 ui-grid export pdf를 사용하지만 마지막 열은 항상 절반으로 줄입니다. 내가 어떤 페이지 크기를 설정 했든 상관 없습니다. '풍경', ui-grid 내보내기 pdf 열이 잘리지 않습니다.

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

에서 그것은 나를 위해 작동하지 않습니다

나는 어떤 사람이 말했다, 설정 exporterPdfOrientation 주위를 검색 할 수 있습니다.

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