@Lubos, please see further below. Manager Server (Ubuntu) v26.5.29.3635. Reports such as Profit and Loss I get something like the following Internal Error when using a custom theme and the PDF Button..
The same custom theme works correctly with the PDF button on invoices, receipts, payments, etc.
In Reports:
- Default theme + PDF button: works.
- Custom theme + Print > Save as PDF: saves, but colours/backgrounds are not preserved.
- Custom theme + PDF button: Internal Error, such as:
Error
<h1>Internal Error</h1><hr />Manager 26.5.29.3635<hr /><pre>System.TimeoutException: Navigation timeout of 30000 ms exceeded
at PuppeteerSharp.Helpers.TaskHelper.<>c__DisplayClass6_0.<WithTimeout>b__0() in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Helpers/TaskHelper.cs:line 54
at PuppeteerSharp.Helpers.TaskHelper.WithTimeout(Task task, Func`1 timeoutAction, TimeSpan timeout, CancellationToken cancellationToken) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Helpers/TaskHelper.cs:line 101
at PuppeteerSharp.Cdp.CdpFrame.SetContentAsync(String html, NavigationOptions options) in /home/runner/work/puppeteer-sharp/puppeteer-sharp/lib/PuppeteerSharp/Cdp/CdpFrame.cs:line 193
at ManagerServer.Pdf.PdfRenderer.RenderToStreamAsync(String html, Stream output) in /home/runner/work/Manager/Manager/ManagerServer/Pdf/PdfRenderer.cs:line 47
at ManagerServer.Pdf.PdfRenderer.RenderToStreamAsync(String html, Stream output) in /home/runner/work/Manager/Manager/ManagerServer/Pdf/PdfRenderer.cs:line 62
at ManagerServer.HttpHandlers.Pdf.Post() in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/Pdf.cs:line 33
at ManagerServer.HttpServer.<>c.<<Build>b__0_10>d.MoveNext() in /home/runner/work/Manager/Manager/ManagerServer/HttpServer.cs:line 238
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)
at ManagerServer.Authentication.UserResolutionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/Manager/Manager/ManagerServer/Authentication/UserResolutionMiddleware.cs:line 29
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)</pre><p><a href="javascript:window.history.back();">Go back</a>
So the issue appears specific to the PDF-button conversion path for Reports when a custom theme is selected. It is not a general custom-theme failure, because the same theme generates PDFs correctly for transaction views.