Update STYLEREF Fields in Word DOCX Document & Apply Hidden Styles to Text upon Converting to PDF C# .NET

Hi,

When I converted a DOCX with some hidden text + field reference to PDF using Aspose.Words, I noticed the hidden part is shown in the PDF.

Code:

var doc = new Document(@".\test2.docx");
doc.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;
doc.Save(@".\AsposeOutput.pdf");

If I converted manually using Word ‘save as’ to PDF, the hidden text does not show.

I’ve attached the output and a screenshot for your reference, could you please help me take a look?

test2.zip (100.5 KB)
image.png (30.2 KB)

Thanks,

@ServerSide527,

We have logged this problem in our issue tracking system with ID WORDSNET-21346. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

The issues you have found earlier have been fixed in this Aspose.Words for .NET 20.12 update and this Aspose.Words for Java 20.12 update.