简体   繁体   English

在Aspose中将word转换为Pdf后doc和pdf之间不一致

[英]Inconsistency between doc and pdf after convertin word to Pdf in Aspose

I have a pdf file: 我有一个pdf文件:

https://uploadfiles.io/uki01 https://uploadfiles.io/uki01

that converted to word by Aspose.pdf and output is : 由Aspose.pdf转换为word并输出为:

https://ufile.io/ikwgx why after convert from pdf to word , the text of word is out of area and And the texts are in a group format. https://ufile.io/ikwgx为什么将pdf转换为word后,word的文本超出范围,并且文本采用组格式。

how can I edit this code to achieve my goal? 如何编辑此代码以实现我的目标?

my code is : 我的代码是:

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

for text grouping problem,I test this code and my problem solved: 对于文本分组问题,我测试此代码,问题解决了:

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

but for text out of table issue ,I still have a problem. 但是对于表外文本问题,我仍然有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM