Skip to content

Commit 20664cf

Browse files
committed
switch from pdfkit to weasyprint for PDF export, fix CSS for templates
1 parent 50ac35a commit 20664cf

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ics
77
babel
88
loguru
99
pandera
10+
weasyprint
1011

1112
flet
1213
pyicloud
13-
pdfkit

templates/invoice-anvil/invoice.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
body {
7-
font-size: 16px;
7+
font-size: 12px;
88
}
99

1010
table {

templates/invoice-anvil/web/modern-normalize.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ body {
5959
Roboto,
6060
Helvetica,
6161
Arial,
62-
sans-serif,
63-
'Apple Color Emoji',
64-
'Segoe UI Emoji';
62+
sans-serif;
63+
/* 'Apple Color Emoji',
64+
'Segoe UI Emoji'; */
6565
}
6666

67+
68+
6769
/*
6870
Grouping content
6971
================

templates/timesheet-anvil/timesheet.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
body {
7-
font-size: 16px;
7+
font-size: 14px;
88
}
99

1010
table {

templates/timesheet-anvil/web/modern-normalize.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ body {
6060
Helvetica,
6161
Arial,
6262
sans-serif,
63-
'Apple Color Emoji',
64-
'Segoe UI Emoji';
63+
/* 'Apple Color Emoji',
64+
'Segoe UI Emoji'; */
6565
}
6666

6767
/*

0 commit comments

Comments
 (0)