Closed srics closed 2 months ago
@srics should it not just be added to dependencies
?
if not, is there a specific field in the config file where this can be checked if the user enabled it?
@srics should it not just be added to
dependencies
?if not, is there a specific field in the config file where this can be checked if the user enabled it?
@aramnhammer Yes, the following config field (reports.renderer
) would indicate the renderer choice:
reports:
format: pdf
renderer: weasyprint
Note, that we support the xhtml2pdf
renderer as the default out-of-the-box option for report generation because it has fewer install dependencies. For weasyprint
, we want the user to explicitly opt-in to make sure platform-specific pango
is in place. See the note in https://daxa-ai.github.io/pebblo/config#reports
Currently the error message is shown only when the PDF report is about to be generated. Users will easily miss it.
Move this check to config validation stage and fail pebblo-server startup.