Skip to content

Commit

Permalink
Remove unused fontProvider parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo committed Sep 25, 2023
1 parent e06243f commit 7b772de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dotnet/src/dotnetcore/GxPdfReportsCS/PDFReportItext8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ public override void GxDrawText(String sTxt, int left, int top, int right, int b
//Iterate over the elements (a.k.a the parsed HTML string) and handle each case accordingly
IList<IElement> elements = HtmlConverter.ConvertToElements(sTxt, converterProperties);
foreach (IElement element in elements)
ProcessHTMLElement(htmlRectangle, yPosition, (IBlockElement)element, fontProvider);
ProcessHTMLElement(htmlRectangle, yPosition, (IBlockElement)element);
}
catch (Exception ex1)
{
Expand Down Expand Up @@ -957,14 +957,14 @@ public override void GxDrawText(String sTxt, int left, int top, int right, int b
}
}

private void ProcessHTMLElement(Rectangle htmlRectangle, YPosition currentYPosition, IBlockElement blockElement, FontProvider fontProvider)
private void ProcessHTMLElement(Rectangle htmlRectangle, YPosition currentYPosition, IBlockElement blockElement)
{
Div div = blockElement as Div;
if (div != null) {
// Iterate through the children of the Div and process each child element recursively
foreach (IElement child in div.GetChildren())
if (child is IBlockElement)
ProcessHTMLElement(htmlRectangle, currentYPosition, (IBlockElement)child, fontProvider);
ProcessHTMLElement(htmlRectangle, currentYPosition, (IBlockElement)child);

}

Expand Down

0 comments on commit 7b772de

Please sign in to comment.