简体   繁体   中英

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

I have a pdf file:

https://uploadfiles.io/uki01

that converted to word by Aspose.pdf and output is :

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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