Posted 13 December 2019, 4:11 pm EST
I am trying to export FlexGrid to Pdf document using FlexGridConvertor .
https://www.grapecity.com/wijmo/demos/Grid/ImportExportPrint/PDF/ExpenseReport/angular
1)On exporting to pdf, the font size for the table comes out small. How do I set the font size for the FlexGridPdfConvertor
2) While converting the flexGrid to pdf, I want to hide two columns i.e not show two columns? How do I do that?
Thanks
gridPdf.FlexGridPdfConverter.draw(flexGrid, doc, doc.width, null, {
styles: {
cellStyle: {
backgroundColor: ‘#ffffff’,
borderColor: ‘#c6c6c6’
},
altCellStyle: {
backgroundColor: ‘#f9f9f9’
},
groupCellStyle: {
font: { weight: ‘bold’ },
backgroundColor: ‘#dddddd’
},
headerCellStyle: {
backgroundColor: ‘#eaeaea’
}
}
});
//
The font size I have for the pdf Document is
let doc = new pdf.PdfDocument({
header: {
declarative: {
text: ‘Expense Report\t&[Page]\&[Pages]’,
font: new pdf.PdfFont(‘times’, 12, ‘normal’),
}
},
lineGap: 2,
pageSettings: {
margins: {
left: 36,
right: 36,
top: 36,
bottom: 36
}
},
ended: (sender: pdf.PdfDocument, args: pdf.PdfDocumentEndedEventArgs) => pdf.saveBlob(args.blob, 'FlexGrid.pdf')
});