##OwnerFilters##
", ""); } - if(deviceFilter != null) + if (deviceFilter != null) { HtmlTemplate = HtmlTemplate.Replace("##OtherFilters##", userConfig.GetText("devices") + ": " + deviceFilter); } @@ -206,58 +212,96 @@ public static string ToUtcString(string? timestring) { return timestring != null ? DateTime.Parse(timestring).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssK") : ""; } - catch(Exception) + catch (Exception) { return timestring ?? ""; } } - public virtual byte[] ToPdf(PaperKind paperKind, int width = -1, int height = -1) + private async Task