Updated PDF footer and added pie chart to aggregate report

This commit is contained in:
Constantin Graf
2024-11-29 11:55:35 +01:00
committed by Constantin Graf
parent 05da595470
commit 620c4c97dc
4 changed files with 170 additions and 92 deletions

View File

@@ -234,6 +234,7 @@ class TimeEntryController extends Controller
$request = Gotenberg::chromium(config('services.gotenberg.url'))
->pdf()
->pdfa('PDF/A-3b')
->margins(0.39, 0.78, 0.39, 0.39)
->paperSize('8.27', '11.7') // A4
->footer(Stream::string('footer', $footerHtml))
->html(Stream::string('body', $html));
@@ -411,6 +412,7 @@ class TimeEntryController extends Controller
->pdf()
->waitForExpression("window.status === 'ready'")
->pdfa('PDF/A-3b')
->margins(0.39, 0.78, 0.39, 0.39)
->paperSize('8.27', '11.7') // A4
->footer(Stream::string('footer', $footerHtml))
->assets(Stream::path(resource_path('pdf-js/echarts.min.js'), 'echarts.min.js'))