We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Mergefield- white font turns grey when convert to PDF

Hi,
Im using Aspose.Words v. 16.8.0.0 to convert .docx to PDF.

I have inserted a mergefield and set the font color to white.
In Microsoft Word, when using the “see print” or even convertering to PDF (using Microsoft word), the font color remains white.

However, when using Aspose.Words and convertering the document using the following code:

Dim ms As New MemoryStream(wordFil)
Dim wordDoc As New Aspose.Words.Document(ms)

Dim options As New PdfSaveOptions()
options.FontEmbeddingMode = PdfFontEmbeddingMode.EmbedAll

Dim resultStream As New MemoryStream()
wordDoc.Save(resultStream, options)

The “white mergefield” turns out to be grey?

I have attached both the .docx and the converted .pdf (grey mergefield)

Why is there a difference between Aspose.Words and Microsoft Word
Is there a way to fix this?

Hi Thomas,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14174. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi,
Any ETA on this? I can see new versions have been released, but this is not resolved yet :slight_smile:

Hi Thomas,

Thanks for your inquiry. We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. Our developers work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.

Currently, your issue is pending for analysis. Once our product team completes the analysis of this issue, we will then be able to provide you an estimate.

Thanks for your patience and understanding.

Hi again,
Any news on this? :slight_smile:

Hi Thomas,

Thanks for your inquiry. Unfortunately, your issue is not resolved yet. We have asked the ETA of this issue from our product team and will update you as soon as any estimates are available. We apologize for your inconvenience.

Best regards,

@THTHO,

The issues you have found earlier (filed as WORDSNET-14174) have been fixed in this Aspose.Words for .NET 17.9 update and this Aspose.Words for Java 17.9 update.