Skip to content

Commit 79f47c7

Browse files
.
1 parent 17c93f5 commit 79f47c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/lib/files/FWO.Report/ReportBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ public static string ToUtcString(string? timestring)
277277
//PdfOptions pdfOptions = new() { DisplayHeaderFooter = true, Landscape = true, PrintBackground = true, Format = pupformat, MarginOptions = new MarginOptions { Top = "1cm", Bottom = "1cm", Left = "1cm", Right = "1cm" } };
278278
using Stream? pdfData = await page.PdfStreamAsync(pdfOptions);
279279

280-
//byte[]? pdfWithToCData = AddToCBookmarksToPDF(pdfData, html);
280+
byte[]? pdfWithToCData = AddToCBookmarksToPDF(pdfData, html);
281281

282-
return "";
282+
return Convert.ToBase64String(pdfWithToCData);
283283
//}
284284
//catch (Exception)
285285
//{

0 commit comments

Comments
 (0)