【问题标题】:Inconsistency between doc and pdf after convertin word to Pdf in Aspose在 Aspose 中将 word 转换为 Pdf 后 doc 和 pdf 之间的不一致
【发布时间】:2017-07-29 11:11:31
【问题描述】:

我有一个 pdf 文件:

https://uploadfiles.io/uki01

由 Aspose.pdf 转换为 word 并输出为:

https://ufile.io/ikwgx 为什么从pdf转换为word后,word的文本超出区域并且文本是组格式的。

如何编辑此代码以实现我的目标?

我的代码是:

Document document = new Document("x"+".pdf");
document.save("x" + ".docx", SaveFormat.DocX);

【问题讨论】:

    标签: java aspose aspose.words aspose.pdf


    【解决方案1】:

    对于文本分组问题,我测试了这段代码,我的问题解决了:

    DocSaveOptions saveOptions = new DocSaveOptions();
    saveOptions.setMode(DocSaveOptions.RecognitionMode.Flow);
    saveOptions.setFormat(DocSaveOptions.DocFormat.DocX);
    document.save(Constants.EXP_DIR + token + ".docx", saveOptions);
    

    但是对于 text out of table 问题,我还是有问题。

    【讨论】:

    • 我是 Aspose 的开发人员传道者,我观察到了有关表格外文本的问题。它已在工单 ID PDFJAVA-36953 下登录到我们的问题跟踪系统。我们将进一步调查此问题,并在我们有新消息时立即通知您。请给我们一点时间。对于给您带来的不便,我们深表歉意。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多