Aspose words java
Author: c | 2025-04-25
Aspose.Words for Java examples, plugins and showcases - aspose-words/Aspose.Words-for-Java
Aspose Repository Browser /java/repo/com/aspose/aspose-words/
A while ago I needed something to convert a 5GB Outlook OST file to PST format. Turned out Aspose has a good (commercial) API/library for Java to do exactly that. I had not touched Java for 10 years but got things sorted within a few hours thanks to clear instructions and good examples and docs. I just used the example and made minimal changes, nothing more.Saving to Outlook 2013/2016 PST files is not supportedDownloadGet files below or from Releases pageJar and wrappers:Main executable: ost2pst.jar (verify SHA512SUMS)Windows batch file: ost2pst.batLinux/BSD shell script: ost2pst.shIf you need to install Java use your OS package manager or download it here: JRE8+ or alternatively JavaSE-RE-8+.UsageWindows: ost2pst.bat Linux: ost2pst.sh Or run the jar directly: java -jar ost2pst.jar Remember you need to have at least JRE8 installed, OpenJDK is untested but should workExampleost2pst.bat input.ost output.pstOST2PST (210619)INFO: File format is "64-bit Unicode" (23)INFO: Loading file "input.pst" (5GB) Folder [00] "Public" Folder [01] "Inbox" Folder [02] "Outbox" Folder [03] "Sent Items"INFO: Converting "input.pst" to "output.ost" 511MB/4751MB (11%) |">C:\src\ost2pst>ost2pst.bat input.ost output.pstOST2PST (210619)INFO: File format is "64-bit Unicode" (23)INFO: Loading file "input.pst" (5GB) Folder [00] "Public" Folder [01] "Inbox" Folder [02] "Outbox" Folder [03] "Sent Items"INFO: Converting "input.pst" to "output.ost" 511MB/4751MB (11%) |Building from sourceImport into Eclipse:pom.xmlLoadAndConvertOSTFileCLI.javaGet Aspose.Email for Java API/lib (required)GitHub Aspose Email-for-Javadocs.aspose.com Installation (Maven)docs.aspose.com Aspose.Email java for Eclipse (Maven)Create runnable Jar in Eclipseuse Ant to 'Export', 'Java', 'Runnable JAR file' (used for ost2pst.jar)or alternatively use Maven to build projectTODOAdd new option that tries to read corrupted ost/pst files. See here for more info.ost2pst.bat -c broken.ost">C:\src\ost2pst>ost2pst.bat -c broken.ostChangelog20210702fixed file size formatting: programming.guide :)updated aspose-email lib to 21.5removed aspose-email submodule from git repo20200317show file format infoexits instead of trying to save outlook 2013+ filesjar also builds in maven now20200313error handling, added notice about outlook '13/16 filesupdated aspose-email lib to 20.220200119fixed (visual) Aspose.Words for Java examples, plugins and showcases - aspose-words/Aspose.Words-for-Java PowerPoint presentations let you create attractive slide slows containing text, graphics, charts, animations, and other elements to make your presentations appealing. In this article, you are going to learn how to implement PowerPoint automation features from within Java applications. Particularly, we will cover how to create PowerPoint PPT or PPTX presentations from scratch in Java. In addition, we will demonstrate how to insert various types of elements in the slides programmatically.Java API to Create PowerPoint Presentations - Free DownloadCreate a PowerPoint PPT in JavaOpen an Existing PowerPoint PPTAdd Slide to a PowerPoint PPT/PPTXAdd Text to a Slide in PPTCreate a Table in PowerPoint PPTAdd an Image to PPT/PPTXJava API to Create PowerPoint Presentations - Free DownloadFor implementing the PowerPoint automation features, Aspose offers Aspose.Slides for Java. It is a high-speed API that makes it quite easier for you to create, edit, convert, and manipulate PowerPoint PPT/PPTX from within your Java applications. You can either download the API or install it within your Maven-based applications using the following configurations. AsposeJavaAPI Aspose Java API com.aspose aspose-slides 22.7 jdk16Create a PowerPoint Presentation in JavaTo begin with the PowerPoint automation, let’s first create an empty presentation document and save it as a PPTX file. The following are the steps to create a presentation document.Create an instance of the Presentation class.Save it as PPTX using Presentation.save(String, SaveFormat) method.The following code sample shows how to create a PowerPoint PPT using Java.Aspose.Slides for Java also allows you to open existing PowerPoint presentations in order to update theirComments
A while ago I needed something to convert a 5GB Outlook OST file to PST format. Turned out Aspose has a good (commercial) API/library for Java to do exactly that. I had not touched Java for 10 years but got things sorted within a few hours thanks to clear instructions and good examples and docs. I just used the example and made minimal changes, nothing more.Saving to Outlook 2013/2016 PST files is not supportedDownloadGet files below or from Releases pageJar and wrappers:Main executable: ost2pst.jar (verify SHA512SUMS)Windows batch file: ost2pst.batLinux/BSD shell script: ost2pst.shIf you need to install Java use your OS package manager or download it here: JRE8+ or alternatively JavaSE-RE-8+.UsageWindows: ost2pst.bat Linux: ost2pst.sh Or run the jar directly: java -jar ost2pst.jar Remember you need to have at least JRE8 installed, OpenJDK is untested but should workExampleost2pst.bat input.ost output.pstOST2PST (210619)INFO: File format is "64-bit Unicode" (23)INFO: Loading file "input.pst" (5GB) Folder [00] "Public" Folder [01] "Inbox" Folder [02] "Outbox" Folder [03] "Sent Items"INFO: Converting "input.pst" to "output.ost" 511MB/4751MB (11%) |">C:\src\ost2pst>ost2pst.bat input.ost output.pstOST2PST (210619)INFO: File format is "64-bit Unicode" (23)INFO: Loading file "input.pst" (5GB) Folder [00] "Public" Folder [01] "Inbox" Folder [02] "Outbox" Folder [03] "Sent Items"INFO: Converting "input.pst" to "output.ost" 511MB/4751MB (11%) |Building from sourceImport into Eclipse:pom.xmlLoadAndConvertOSTFileCLI.javaGet Aspose.Email for Java API/lib (required)GitHub Aspose Email-for-Javadocs.aspose.com Installation (Maven)docs.aspose.com Aspose.Email java for Eclipse (Maven)Create runnable Jar in Eclipseuse Ant to 'Export', 'Java', 'Runnable JAR file' (used for ost2pst.jar)or alternatively use Maven to build projectTODOAdd new option that tries to read corrupted ost/pst files. See here for more info.ost2pst.bat -c broken.ost">C:\src\ost2pst>ost2pst.bat -c broken.ostChangelog20210702fixed file size formatting: programming.guide :)updated aspose-email lib to 21.5removed aspose-email submodule from git repo20200317show file format infoexits instead of trying to save outlook 2013+ filesjar also builds in maven now20200313error handling, added notice about outlook '13/16 filesupdated aspose-email lib to 20.220200119fixed (visual)
2025-03-27PowerPoint presentations let you create attractive slide slows containing text, graphics, charts, animations, and other elements to make your presentations appealing. In this article, you are going to learn how to implement PowerPoint automation features from within Java applications. Particularly, we will cover how to create PowerPoint PPT or PPTX presentations from scratch in Java. In addition, we will demonstrate how to insert various types of elements in the slides programmatically.Java API to Create PowerPoint Presentations - Free DownloadCreate a PowerPoint PPT in JavaOpen an Existing PowerPoint PPTAdd Slide to a PowerPoint PPT/PPTXAdd Text to a Slide in PPTCreate a Table in PowerPoint PPTAdd an Image to PPT/PPTXJava API to Create PowerPoint Presentations - Free DownloadFor implementing the PowerPoint automation features, Aspose offers Aspose.Slides for Java. It is a high-speed API that makes it quite easier for you to create, edit, convert, and manipulate PowerPoint PPT/PPTX from within your Java applications. You can either download the API or install it within your Maven-based applications using the following configurations. AsposeJavaAPI Aspose Java API com.aspose aspose-slides 22.7 jdk16Create a PowerPoint Presentation in JavaTo begin with the PowerPoint automation, let’s first create an empty presentation document and save it as a PPTX file. The following are the steps to create a presentation document.Create an instance of the Presentation class.Save it as PPTX using Presentation.save(String, SaveFormat) method.The following code sample shows how to create a PowerPoint PPT using Java.Aspose.Slides for Java also allows you to open existing PowerPoint presentations in order to update their
2025-04-15In various cases, you may need to convert the HTML content to a Word document. For example, for generating the document from a WYSIWYG HTML editor or converting a web page to DOCX or DOC format. To perform this conversion programmatically, this article covers how to convert HTML files to Word DOCX, DOC, DOCM, or other formats in Java.Library to Convert HTML to WordConvert an HTML File to DOCX/DOC/DOCM etc.Convert a Web Page to Word using URLHTML String to Word ConversionTo convert HTML to DOCX, DOC, DOT, DOCM, and other Word formats, we will use Aspose.Words for Java. It is a powerful library to create and manipulate Word documents programmatically. Moreover, it provides a built-in document converter that provides high fidelity conversion of/to Word processing documents. You can download the API’s JAR from the downloads section or install it using the following Maven configurations in pom.xml. AsposeJavaAPI Aspose Java API com.aspose aspose-words 21.11 pomConvert HTML to DOCX/DOC/DOCM in JavaUsing Aspose.Words for Java, the conversion of an HTML file to Word format can be done in a couple of steps, which are mentioned below.Load the HTML file using Document class.Save the HTML file as Word document using Document.save(string, SaveFormat) method.The SaveFormat enum in Document.save() method specifies the format in which you want to convert the HTML file. The following code sample shows how to generate a Word document from HTML in Java.Convert a Web Page to Word using URL in JavaYou can also convert a web page to a Word document directly from its URL. The following are the steps to convert HTML to DOCX using URL in Java.Create an instance of URL class and initialize it with desired URL.Open URL into a InputStream object.Create an instance of HtmlLoadOptions class.Create an instance of Document class and initialize it with InputStream and HtmlLoadOptions objects.Save the web page as Word document using Document.save(string, SaveFormat) method.The following code sample shows how to convert a web page to a Word document using a URL.Convert an HTML String to Word using JavaAspose.Words for Java also allows you to generate a Word document from HTML string dynamically. The following are the steps to perform this operation.Create an instance of Document class.Create an instance of DocumentBuilder class and initialize it with Document object.Insert HTML into the document using DocumentBuilder.InsertHtml(string) method.Save the Word document using Document.save(string, SaveFormat) method.The following code sample shows how to convert an HTML string to
2025-04-02Aspose and GroupDocs, which can be used for converting TGA to PNG. While there are various APIs to choose from, we have used code snippets from GroupDocs.Conversion for Java for simplicity.Which file formats are supported by Conholdate.Total for Java for documents and images?Conholdate.Total for Java empowers Java programmers to efficiently perform document manipulation tasks on a wide range of file formats, including Word, Excel, PDF, PowerPoint, Visio, HTML, and various image formats. By integrating APIs from Aspose and GroupDocs, developers can seamlessly work with these document & image formats in their Java and J2SE applications.What is TGA file format?TGA (Targa) is an image file format created as a raster graphics language for use with computers and other electronic devices. It was first developed in 1984 byTruevision Inc. (then called Truevision, Inc.). TGA files are defined by the Truevision TGA file specification and support both uncompressed and compressed (RLE) versions of the TGA format. The format supports color depths of 8, 16, 24, or 32 bits and is most commonly used in non-animated images such as digital photos, textures, backgrounds, and screen captures. TGA files can also be used to store animations. TGA files are often used in 3D graphics applications such as 3D Studio Max, Lightwave, and Blender. They are also popular for archiving and transferring textures between graphics programs and are used in games and commercial design applications. TGA files are often used in video editing and post-production. TGA is also useful for storing data in a file structure,
2025-04-09