[英]Inconsistency between doc and pdf after convertin word to Pdf in Aspose
我有一個pdf文件:
由Aspose.pdf轉換為word並輸出為:
https://ufile.io/ikwgx為什么將pdf轉換為word后,word的文本超出范圍,並且文本采用組格式。
如何編輯此代碼以實現我的目標?
我的代碼是:
Document document = new Document("x"+".pdf");
document.save("x" + ".docx", SaveFormat.DocX);
對於文本分組問題,我測試此代碼,問題解決了:
DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.setMode(DocSaveOptions.RecognitionMode.Flow);
saveOptions.setFormat(DocSaveOptions.DocFormat.DocX);
document.save(Constants.EXP_DIR + token + ".docx", saveOptions);
但是對於表外文本問題,我仍然有問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.