All mark of emphasis are missing when convert Docx to PDF

Description

All mark of emphasis are missing when convert Docx to PDF.

Environment

  • Windows 10 .NET 4.7
  • Chinese Language
  • Aspose.Words for .NET 22.11

Code

void Main()
{
	var doc = new Aspose.Words.Document(@"C:\Users\XCL\Desktop\source.docx");
	doc.Save(@"C:\Users\XCL\Desktop\target.pdf", Aspose.Words.SaveFormat.Pdf);
}

Preview

image.png (58.1 KB)
image.png (31.5 KB)
image.png (50.4 KB)

Test Files

source.docx (12.2 KB)
target.pdf (49.3 KB)

@xxtears Unfortunately, Aspose.Words does not support rendering of emphasis marks. This feature request is logged as WORDSNET-21395. We will keep you informed and let you know once this feature is implemented.

I have encountered the same problem, may I ask whether it has been solved now? If not, can you provide a temporary solution

@gyc Unfortunately, currently there are not news regarding this feature implementation. It’s implementation has been postponed and is not yet scheduled for development.

2 posts were split to a new topic: 目前23.9使用setEmphasisMark(int value)方法设置完以后保存docx时有着重号,但是导出pdf没有着重号

WORDSNET-21395: Is this problem being solved ?
Is there a site where we can see the status of issues?

@gyc Unfortunately, WORDSNET-21395 is still postponed and is not scheduled for development. Please accept our apologies for your inconvenience.

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

Document doc = new Document(); 
DocumentBuilder builder = new DocumentBuilder(doc); 
builder.getFont().setEmphasisMark(EmphasisMark.UNDER_SOLID_CIRCLE); 
builder.write("sdfsdafsafadsfdsasdfdsfadfas");
builder.getFont().clearFormatting(); 
builder.write("sdafsaaa***********************"); 
doc.save(“D:\33311test1.docx”);
Document doc1 = new Document("D:\\33311test.docx"); 
doc1.save("D:\\33311test1.pdf",SaveFormat.PDF);

This latest java version is not supported

@xxtears
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-27636

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.

@gyc As a workaround you can specify locale:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.getFont().setEmphasisMark(EmphasisMark.OVER_SOLID_CIRCLE);
builder.getFont().setLocaleIdFarEast(2052); // Use Chinese locale
builder.write("sdfsdafsafadsfdsasdfdsfadfas");
builder.getFont().clearFormatting();
builder.write("sdafsaaa***********************");
doc.save("C:\\Temp\\out.docx");
doc.save("C:\\Temp\\out.pdf");

give a like and thanks you :+1:

1 Like