Text overlapping issue occurs while setting background-167241

Hii  Irfana,

Thanks for update. I have tried to access above feedback link access denied can you please provide access.

And in my case I have tried with my own code but another issue facing "In case of long text, or a large number of messages, the text of the table seems to exceed the table itself and to be written strangely on the following page, and moreover some text seems hidden behind the background-color of the table."


Please find the attachment, you can trace easily.


Thanks and regards,

Rajkumar Bhagavati


Attachment: Issue_with_backgroundcolor_27bc6b5c.zip


16 Replies

IJ Irfana Jaffer Sadhik Syncfusion Team February 6, 2025 01:50 PM UTC

Hi Rajkumar,


We were unable to reproduce the reported behavior with the provided details on our end. We have attached a sample for your reference. We request you to share with us the modified sample, issue version and the steps to replicate the issue with us. So that we can assist with you further in this.


Regards,

Irfana J.


Attachment: ConsoleAppWinforms_336ec4be.zip


RA rajkumar February 19, 2025 04:40 AM UTC

Hello Irfana,

Thanks for the update I have checked at my end using sample code given by you but i am facing issue while applied background color for the cell 


I will attach code please check and let me know.

Regards,

Rajkumar bhagavati


Attachment: Background_color_not_applied_proper_679eaa35.zip


IJ Irfana Jaffer Sadhik Syncfusion Team February 19, 2025 10:34 AM UTC

Hi Rajkumar,


Currently we are validating on the reported issue with the provided details on our end and we will share the further validation details on February 21st, 2025.


Regards,

Irfana J.



RA Rangarajan Ashokan Syncfusion Team February 24, 2025 04:15 PM UTC

Hi Rajkumar,

We have confirmed the issue “TextOverlapping issue occurs while setting background color to the cell of the PdfGrid” as a defect in our product and we will include the fix in weekly release on 11th March 2025.

 

Please use the below feedback link to track the status of the reported bug.

https://www.syncfusion.com/feedback/65731/text-overlapping-issue-occurs-while-setting-background

 

Note: If you require a patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.

 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

 

Upon further analysis, we found that the HTML text element is retrieved as a metadata file, which has a default background color. This leads to the issue of an improper background color for the cell. Please see the screenshots below of the existing output and the fixed output, and let us know if it meets your requirements.

 

Existing output:

image

 

Fixed output:

image



Regards,

Rangarajan.



RA Rangarajan Ashokan Syncfusion Team February 24, 2025 04:15 PM UTC

Hi Rajkumar,

We have confirmed the issue “TextOverlapping issue occurs while setting background color to the cell of the PdfGrid” as a defect in our product and we will include the fix in weekly release on 11th March 2025.

 

Please use the below feedback link to track the status of the reported bug.

https://www.syncfusion.com/feedback/65731/text-overlapping-issue-occurs-while-setting-background

 

Note: If you require a patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy.

 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

 

Upon further analysis, we found that the HTML text element is retrieved as a metadata file, which has a default background color. This leads to the issue of an improper background color for the cell. Please see the screenshots below of the existing output and the fixed output, and let us know if it meets your requirements.

 

Existing output:

image

 

Fixed output:

image



Regards,

Rangarajan.



RA rajkumar February 25, 2025 09:32 AM UTC

Hi Rangarajan,
Thanks for the update can you please send me patch of code(Using syncfusion Blazor).
Please find the attachment version which we used.

Please see the screenshots of  version which we used.

Image_9960_1740475789378

Regards,

Rajkumar Bhagavati



RS RaashithAhamed SahulHameed Syncfusion Team February 26, 2025 12:26 PM UTC

Hi Rajkumar,

                  Thanks for the update.We will provide the patch in the mentioned version 27.2.2 on 28th February 2025

Regards,




RS RaashithAhamed SahulHameed Syncfusion Team February 26, 2025 12:26 PM UTC

Hi Rajkumar,

                  Thanks for the update.We will provide the patch in the mentioned version 27.2.2 on 28th February 2025

Regards,

Raashith Ahamed



RA rajkumar March 3, 2025 05:37 AM UTC

Hi Raashith,
I have checked at my side still same issue facing



Regards,

Rajkumar bhagavati



IJ Irfana Jaffer Sadhik Syncfusion Team March 3, 2025 06:59 AM UTC

Hi Rajkumar,


Due to stability concerns while addressing the issue, we were unable to provide the custom patch. We will resolve the issue and deliver the patch for the required version on or before March 4, 2025, without fail.

 

We apologize for any inconvenience this may have caused and appreciate your understanding.

 


Regards,

Irfana J.



SR Savithiri Ranganathan Syncfusion Team March 4, 2025 03:06 PM UTC

Hi Rajkumar,

We investigated the issue in the .NET Framework platform and successfully identified and resolved it. Since you initially mentioned WPF in the forum, we ensured the fix is included for .NET Framework as well. This fix will be part of the upcoming weekly release on 11/03/2025.

If you require a separate patch for .NET Framework before the official release, please let us know, and we will proceed accordingly.

 

Based on your forum response (link to forum post), we understand that you are working with .NET Core. Upon testing, we were able to reproduce the issue where "some text appears hidden behind the background color of the table."

 

  • In .NET Framework, we process HTML elements using rich text and render them as a metafile, allowing background information to be applied correctly.
  • However, in .NET Core, due to platform limitations, we cannot render text as a metafile. Instead, we handle rendering manually, leading to this issue.

 

Due to the complexity of the issue, further analysis is required. We will provide an update on our findings and the resolution plan by 06/03/2025.

If you have any additional insights or requirements, please let us know.



Regards,

Savithiri R.



SR Savithiri Ranganathan Syncfusion Team March 6, 2025 05:00 PM UTC


Hi Rajkumar,

In the .NET Core platform, we use our own rendering technique to parse HTML elements and render them into PDF graphics. When HTML elements are included in grid cell values, we typically apply a background color to the cell before rendering the content. However, our current architecture does not support retaining the background color during pagination, leading to its loss when cell values containing HTML text elements are paginated.

We are actively analyzing the feasibility of maintaining background colors during pagination when grid cells contain HTML text elements. This requires evaluating additional use cases and the architectural complexities involved. Our analysis is ongoing, and we will provide further updates on March 10th, 2025.


Regards,

Savithiri R.




IJ Irfana Jaffer Sadhik Syncfusion Team March 10, 2025 01:31 PM UTC

Hi Rajkumar,


We have confirmed the issue "Text overlapping occurs when setting a background color for PdfGrid cells" in the .NET Core platform as a defect. The fix will be included in the weekly release on March 26, 2025. Additionally, the fix for the base Platform will be included in the upcoming weekly release on March 11, 2025 (tomorrow).
Please use the below feedback link to track the status of the reported bug.
Note: If you require a patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know , so that we can provide a patch in that version based on our SLA policy.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
 Cause :
Upon further analysis we found the cause for the issue , In the .NET Core platform, Syncfusion follows a specific rendering process where the background color of the grid cells is drawn first, and then the text inside the grid is processed separately as an HTML element.
If the text is too long to fit on the page, pagination occurs, moving the remaining text to the next page. However, this causes an issue:
  1. On the first page, the background is drawn first, followed by the text.
  2. When pagination happens, on the next page, the remaining text is drawn first, and then the grid with the background is rendered on top of it.
This results in the text becoming invisible or overlapped by the background, leading to the issue.


Regards,

Irfana J



IJ Irfana Jaffer Sadhik Syncfusion Team March 11, 2025 02:00 PM UTC

Hi Rajkumar,

As promised earlier, we have included the fix in .NET Framework platform for the reported issue where "Text overlapping occurs when setting a background color for PdfGrid cells" in our latest weekly NuGet release (v28.2.11).
Please use the below link to download our latest weekly NuGet:
Cause :
In the .NET Framework, the HTML text element is converted into rich text and then rendered as a metafile, which includes a default background color. This results in an issue where the cell has an improper background color.
We sincerely thank you for your support and patience as we prepared this release. Please feel free to contact us if you need any further assistance.


Regards,

Irfana J



SR Savithiri Ranganathan Syncfusion Team March 25, 2025 01:57 PM UTC

Hi Rajkumar,

We regret to inform you that the fix for the issue "Text overlapping occurs when setting a background color for PdfGrid cells" could not be included in the 2025 Volume 1 release scheduled for tomorrow (26/03/2025) as planned. However, this fix will be included in the next weekly release, scheduled for the first week of April.

As per your request, we have prepared a custom patch with the fix in version 27.2.2. Please find the attachment for your reference.

Installation Steps:

  1. Uninstall any existing Syncfusion packages from the sample project.
  2. Delete the Syncfusion.Pdf.Net.Core package (version 27.2.2) from the .nuget folder.
    • Folder path: C:\Users\xxx\.nuget\packages\Syncfusion.Pdf.Net.Core\27.2.2\
  3. Install the Syncfusion.Pdf.Net.Core package from the provided custom patch.
  4. Install the required dependency packages.

Please try the patch on your end and let us know the results.

 

Root Cause:

When the text exceeds the available space on a page, pagination occurs, moving the remaining text to the next page. However, this process causes an issue.

On the first page, the background is drawn first, followed by the text. However, when pagination occurs, the remaining text is rendered first on the next page, and then the grid with the background is drawn on top of it.

As a result, the text becomes invisible or overlapped by the background, leading to the issue.

 

We sincerely apologize for any inconvenience this may have caused and appreciate your understanding. If you have any additional insights or requirements, please let us know.


Regards,

Savithiri R.

Attachment: syncfusion.pdf.net.core.27.2.2_45099bbe.7z


IJ Irfana Jaffer Sadhik Syncfusion Team April 2, 2025 07:16 AM UTC

Hi Jorg,


As promised earlier, we have included the fix for the reported issue with “Text overlapping occurs when setting a background color for PdfGrid cells” in our latest weekly NuGet release (v29.1.35).
Root Cause :
When the text exceeds the available space on a page, pagination occurs, moving the remaining text to the next page. However, this process causes an issue.
On the first page, the background is drawn first, followed by the text. However, when pagination occurs, the remaining text is rendered first on the next page, and then the grid with the background is drawn on top of it.
As a result, the text becomes invisible or overlapped by the background, leading to the issue.
Please use the below link to download our latest weekly NuGet:
Please use the below feedback link to track the status of the reported bug.
Please let us know if you need any further assistance.


Regards,

Irfana J.


Loader.
Up arrow icon