原創|使用教程|編輯:張瑩心|2021-10-26 10:30:47.407|閱讀 359 次
概述:OneNote 文件包含數字筆記,可以包括文本、圖像、繪圖等。在某些情況下,您可能需要將 OneNote .one文件轉換為 Word 文檔。本文介紹如何將 Microsoft OneNote .one 文件轉換為DOCX或DOC文件格式。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
OneNote 文件包含數字筆記,可以包括文本、圖像、繪圖等。在某些情況下,您可能需要將 OneNote .one文件轉換為 Word 文檔。本文介紹如何將 Microsoft OneNote .one 文件轉換為DOCX或DOC文件格式。
Aspose.Note for .Java是功能豐富的OneNote文檔處理API,可讓您讀取和轉換OneNote文檔。如果你還沒有用過Aspose.Tasks可以點擊這里下載最新版測試。
<repositories>
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>//repository.aspose.com/repo/</url>
</repository>
</repositories>
依賴
<dependencies>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-note</artifactId>
<version>21.9</version>
<classifier>jdk17</classifier>
</dependency>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-pdf</artifactId>
<version>21.9</version>
</dependency>
</dependencies>
下面的代碼片段解釋了如何使用 Java 將 OneNote .one 文件轉換為 DOCX 或 DOC Word 文檔:
// Initialize an instance of ByteArrayOutputStream class.
final ByteArrayOutputStream stream = new ByteArrayOutputStream();
// Load the OneNote .one file using Document class.
com.aspose.note.Document oneFile = new com.aspose.note.Document("Aspose.one");
// Export the .one file as PDF
oneFile.save(stream, com.aspose.note.SaveFormat.Pdf);
// Load the file using Aspose.PDF Document class.
com.aspose.pdf.Document file = new com.aspose.pdf.Document(stream.toByteArray());
// Convert the OneNote .one file as Word DOCX document.
file.save("SaveOutput.docx" , com.aspose.pdf.SaveFormat.DocX);
如果你想試用Aspose的全部完整功能,可聯系在線客服獲取30天臨時授權體驗。
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@ke049m.cn