Fix PDF table report font size
This commit is contained in:
parent
29ffab414c
commit
bf62b1accb
|
@ -20,8 +20,7 @@ export const createPDFTableHeaders = (keys: any): any[] => {
|
||||||
id: keys[i],
|
id: keys[i],
|
||||||
name: keys[i],
|
name: keys[i],
|
||||||
prompt: keys[i],
|
prompt: keys[i],
|
||||||
width: 65,
|
align: 'left',
|
||||||
align: 'center',
|
|
||||||
padding: 0,
|
padding: 0,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -34,8 +33,7 @@ export const generatePDFTable = (doc: jsPDF, _docData: any, _docHeaders: string[
|
||||||
doc.text(_docTitle, 20, 20);
|
doc.text(_docTitle, 20, 20);
|
||||||
doc.setFont('helvetica');
|
doc.setFont('helvetica');
|
||||||
|
|
||||||
doc.setFontSize(12);
|
doc.table(20, 30, _docData, _docHeaders, { fontSize: 10, autoSize: true });
|
||||||
doc.table(20, 30, _docData, _docHeaders, { autoSize: true });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const saveGeneratedPDF = (doc: jsPDF, _fileName: string) => {
|
export const saveGeneratedPDF = (doc: jsPDF, _fileName: string) => {
|
||||||
|
|
Loading…
Reference in New Issue