xgwcg 2019-04-17 09:45 采纳率: 0%
浏览 5798
已结题

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)
  • 写回答

4条回答

  • ayouyouyuer 2019-04-17 09:57
    关注

    尝试把

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

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器