Word 样式转换有问题

word 样式转换有问题word 样式转换有问题word 样式转换有问题word 样式转换有问题word 样式转换有问题1.zip (17.1 KB)

@wzlapple

您能否分享您面临的问题? 还请共享将文档转换成哪种文件格式。 请创建简单的代码示例,以在最后重现您的问题。

我们将调查该问题,并为您提供更多信息。

把Word转为paf就不正常了

Document document = new Document(sourceFilePath);
document.updateWordCount();
document.updateTableLayout();
document.save(convertPdfFileOut, com.aspose.words.SaveFormat.PDF);
convertPdfFileOut.flush();

@wzlapple

将文档保存为PDF之前,请不要调用Document.UpdateTableLayout方法。

关于字体样式问题,请注意,在将文档呈现为固定页面格式(JPEG,PNG,PDF或XPS)时,Aspose.Words需要TrueType字体。 您需要在将文档转换为PDF的计算机上安装文档中使用的字体。 请参考以下文章:

Aspose.Words如何使用True Type字体
如何在渲染过程中接收丢失字体和字体替换的通知