Skip to content

Commit 17c93f5

Browse files
.
1 parent 9f2a5fa commit 17c93f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 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 Convert.ToBase64String(pdfWithToCData);
282+
return "";
283283
//}
284284
//catch (Exception)
285285
//{
@@ -383,7 +383,7 @@ private static bool IsValidHTML(string html)
383383
private static byte[] AddToCBookmarksToPDF(Stream pdfData, string html)
384384
{
385385
PdfDocument document = PdfReader.Open(pdfData, PdfDocumentOpenMode.Modify);
386-
XFont font = new("Verdana", 16);
386+
//XFont font = new("Verdana", 16);
387387

388388
PdfPage page = document.Pages[0];
389389

0 commit comments

Comments
 (0)