生成的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)