Convert TXT to ODP via Java

TXT to ODP conversion by using on premise Java API within any Java J2SE, J2EE, J2ME applications without using Microsoft® PowerPoint or Word


Often times developers have to convert TXT file to ODP programmatically. By using the File Automation Java libraries Aspose.Total for Java you can automate the rendering process in a few simple steps. You can load your TXT file by using Aspose.Words for Java and convert it to HTML. After that by using powerful PowerPoint manipulation Java API Aspose.Slides for Java you can create a new Presentation, write HTML content in it, and save it as ODP.

How to Convert TXT to ODP via Java

  1. Open TXT file using Document class
  2. Convert TXT file to HTML by using save method
  3. Initialize a new Presentation object
  4. Extract content from HTML file using BufferedReader and write the content in your presentation file
  5. Save the document to ODP using save method

TXT File Conversion in Java

For TXT to ODP file conversion, you can easily use Aspose.Total for Java directly from a Maven based project and include libraries in your pom.xml.

Alternatively, you can get a ZIP file from downloads .

Convert TXT to ODP with Watermark via Java

Using the API, you can also perform TXT file to ODP conversion with watermark. In order to add a watermark to your ODP document, you can first export TXT to HTML and write HTML content in Presentation object. After that to add a watermark, you can add text using addTextFrame, set all the relevant options like color, fillType and more and can save the document to ODP.

Other Conversion Options

TXT TO PPSX (PowerPoint Slide Show)
TXT TO PPTX (Open XML presentation Format)
TXT TO PPT (Microsoft PowerPoint 97-2003)
TXT TO PPTM (Macro-enabled Presentation File)
TXT TO PPS (PowerPoint Slide Show)
TXT TO POT (Microsoft PowerPoint Template Files)
TXT TO POTX (Microsoft PowerPoint Template Presentation)
TXT TO POTM (Microsoft PowerPoint Template File)
TXT TO PPSM (Macro-enabled Slide Show)
TXT TO CSV (Comma Seperated Values)
TXT TO DIF (Data Interchange Format)
TXT TO FODS (OpenDocument Flat XML Spreadsheet)
TXT TO ODS (OpenDocument Spreadsheet)
TXT TO SXC (StarOffice Calc Spreadsheet)
TXT TO TSV (Tab Seperated Values)
TXT TO XLAM (Excel Macro-Enabled Add-In)
TXT TO XLTM (Excel Macro-Enabled Template)
TXT TO XLS (Microsoft Excel Spreadsheet (Legacy))
TXT TO XLSB (Excel Binary Workbook)
TXT TO XLSM (Macro-enabled Spreadsheet)
TXT TO XLSX (Open XML Workbook)
TXT TO XLT (Excel 97 - 2003 Template)
TXT TO XLTM (Excel Macro-Enabled Template)
TXT TO XLTX (Excel Template)