Field code appears after save as a PDF document

Dear Sir
When we were converting a Word document to PDF by using aspose.wod component which version is 23.09 , we encountered a problem where the Field in the original document was printed as a Field Code, as shown in the following figure

Here are our original documents and the printed PDf documents.
666.docx.pdf (48.2 KB)
doc2pdf.docx (29.9 KB)

var options = new Aspose.Words.Saving.PdfSaveOptions();
options.DownsampleOptions.Resolution = 130;
doc.LayoutOptions.RevisionOptions.ShowRevisionMarks = false;
doc.LayoutOptions.RevisionOptions.ShowRevisionBars = false;
doc.LayoutOptions.CommentDisplayMode = Aspose.Words.Layout.CommentDisplayMode.Hide;
                    
MemoryStream output = new MemoryStream();
rlt = doc.Save(output, options);

@wengyeung
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25920

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Dear alexey
we have another problem while converting word into pdf , It show a Garbled code after the char ®️ ,please reference the word document and the diagram .

image.png (3.6 KB)

doc2pdf_2.docx (398.7 KB)

@wengyeung
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25971

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@wengyeung The issue WORDSNET-25971 has been closed as Not a Bug. The .notdef glyph is produced from U+FE0F ‘VARIATION SELECTOR-16’ character. It seems to be used to alter emoji rendering and should not be rendered by itself. This character is handled on the text shaping level and using HarfBuzzTextShaperFactory.Instance produces correct output.

Aspose.Words.Shaping.Harfbuzz package provides support for OpenType features in Aspose.Words using the HarfBuzz text shaping engine. You should enabling open type features to get the expected result. To achieve this you should add reference to Aspose.Words Shaping Harfbuzz plugin and use the following code to convert your document:

Document doc = new Document(@"C:\Temp\in.docx");
doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance;
doc.Save(@"C:\Temp\out.pdf");

The issues you have found earlier (filed as WORDSNET-25971) have been fixed in this Aspose.Words for .NET 23.10 update also available on NuGet.

Dear sir
It occurs the error as “Text shaper factory failed to return text shaper for ‘C:\WINDOWS\Fonts\arialbd.ttf’, face index ‘0’” while using the code

" doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance; " at our program .

@wengyeung Unfortunately, the problem is not reproducible on my side. The following code produces correct output on my side:

Document doc = new Document(@"C:\Temp\in.docx");
doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance;
doc.Save(@"C:\Temp\out.pdf");

out.pdf (55.8 KB)

Could you please attach your version of ‘C:\WINDOWS\Fonts\arialbd.ttf’ font here for testing? We will check with it and provide you more information.

Dear Sir
we process the document successfully at another unit-testing project with same code at same machine , it make me confused . but the successful one is the platform of visual studio 2019 . Is it a key point ?

we get the completed error message as bellow 
"Error Message:System.Exception: Text shaper factory failed to return text shaper for 'C:\WINDOWS\Fonts\arialbd.ttf', face index '0' ---> System.DllNotFoundException: Unable to load library 'harfbuzz.dll'."

@wengyeung Could you please make sure harfbuzz.dll is deployed into your another (problematic) project. Looks like the DLL is missed.

Dear Sir ,
you are right ,we miss the folder that contains the file harfbuzz.dll after build project .thx .
but bellow document still convert as a space for the special chars.

spcecial char(2).docx (396.6 KB)

@wengyeung
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26037

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-25920) have been fixed in this Aspose.Words for .NET 23.12 update also available on NuGet.