Aspose word 转换为pdf 排版混乱,求大神指导

生成的word格式没有问题,但是在转换为pdf时就出现左右两边没显示完,内容被挤到右边去啦
public static boolean changeWordToPdf(String resourPath,String savePath){
boolean result = true;
try {
Document doc = new Document(resourPath);
PdfSaveOptions options = new PdfSaveOptions();
options.setExportDocumentStructure(true);
doc.save(savePath);
}catch (Exception e) {
e.printStackTrace();
result = false;
}
return result;
}

![图片说明](https://img-ask.csdn.net/upload/201904/17/1555468461_647662.png)

尝试把

PdfSaveOptions options = new PdfSaveOptions();
options.setExportDocumentStructure(true);
这两行注释掉

解决了吗兄弟

可以试下Spire.Doc for .net控件,我用过,转换效果挺不错,代码操作也简单。
spire.doc for .net产品下载链接:


word转pdf代码教程:
C#/VB.NET 将 Word 转为受密码保护的 PDF 本文介绍如何使用Spire.Doc for .NET将Word转为PDF时设置PDF文档密码保护,可设置PDF文档打开密码保护以及权限密码保护。附VB.NET代码,有需要可供参考。 C# using Spire.Doc; using Spire.Pdf.Security; namespace Wor... https://www.e-iceblue.cn/conversion/convert-word-to-protected-pdf-using-c.html

https://blog.csdn.net/qq_39314099/article/details/80959517