Skip to content

Commit

Permalink
fix: pdf font
Browse files Browse the repository at this point in the history
  • Loading branch information
TitoMoi committed Sep 19, 2023
1 parent 5f2644e commit 41a181c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class SelectionListHorComponent implements OnChanges {
const tableId = `table${i}`;
autoTable(doc, {
html: "#" + tableId,
styles: { font, fontSize: 13 },
styles: { font, fontSize: 10 },
theme: "plain",
margin: firstTable ? { top: 30 } : undefined,
didParseCell: (data) => {
Expand Down
4 changes: 2 additions & 2 deletions src/app/report/selection-list/selection-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export class SelectionListComponent implements OnChanges {
const tableId = `table${i}`;
autoTable(doc, {
html: "#" + tableId,
styles: { font, fontSize: 13 },
styles: { font, fontSize: isForPrint ? 10 : 13 },
theme: "plain",
margin: this.reportTitle ? { top: 30 } : firstTable ? { top: 10 } : undefined,
columnStyles: { 0: { cellWidth: 110 }, 1: { cellWidth: 80 } },
Expand All @@ -280,7 +280,7 @@ export class SelectionListComponent implements OnChanges {
if (localName === "th") {
//the "or" condition is necessary, otherwise pdf is not showed in acrobat reader
data.cell.styles.fontStyle = "bold";
data.cell.styles.fontSize = 14;
data.cell.styles.fontSize = 12;
return;
}
},
Expand Down

0 comments on commit 41a181c

Please sign in to comment.