Aspose.Words drops the table cell fill color when converting Rich Text Files (RTF)

While converting RTF to PDF we are loosing table cell shading ( becoming white color). This is happening even if we change color of one table header cell then entire table header colors in PDF getting white color.

@hdv

It seems you are experiencing an issue with Aspose.Words where the table cell fill color is lost when converting Rich Text Files (RTF) to DOCX and PDF formats. This problem appears to be specific to RTF files created in Word 2019/365 from version 2505 (Build 18827.20128) onward.

To troubleshoot this issue, you can try the following steps:

  1. Update Aspose.Words: Ensure you are using the latest version of Aspose.Words, as updates often include bug fixes and improvements.

  2. Check RTF Formatting: Open the RTF file in a text editor and verify the formatting codes related to table cell shading. Sometimes, the issue may stem from how the RTF is structured.

  3. Use Alternative Formats: If the issue persists, consider converting the RTF to another format (like DOCX) first, and then to PDF. This can sometimes preserve formatting better.

  4. Sample Code: Here’s a minimal code snippet to convert RTF to DOCX and then to PDF:

    Document doc = new Document("input.rtf");
    doc.save("output.docx");
    doc.save("output.pdf");
    
  5. Contact Support: If none of the above solutions work, consider reaching out to Aspose support with a sample RTF file that reproduces the issue. They may provide a more specific solution or workaround.

For further assistance, you can refer to the Aspose documentation or community forums for similar issues and solutions.

@hdv Could you please zip and attach your problematic input RTF document here for testing? We will check the issue and provide you more information.