Apache poi
Author: s | 2025-04-25
All material on this website is Copyright , The Apache Software Foundation. Apache POI, POI, Apache, the Apache feather logo, and the Apache POI project All material on this website is Copyright , The Apache Software Foundation. Apache POI, POI, Apache, the Apache feather logo, and the Apache POI project
apache/poi: Mirror of Apache POI - GitHub
Apache License, Version 2.0 The Apache Software Foundation lucene-queryparser.jar 4.6.0 Apache License, Version 2.0 The Apache Software Foundation lucene-suggest.jar 4.6.0 Apache License, Version 2.0 The Apache Software Foundation Mail.jar 1.4.7 Binary Code License JavaMail API Mail.jar 1.4.7 CDDL Version 1.0 Sun Microsystems, Inc. maverick-all.jar 1.4.18 SSHTOOLS SOFTWARE LICENSE J2SSH Maverick maverick-legacy-client-all.jar 1.6.28 OEM Maverick Legacy maverick-legacy-server-all.jar 1.6.28 OEM Maverick Legacy msgpack-0.6.7.jar 0.6.7 Apache License, Version 2.0 MessagePack for Java NamedRegEx.jar 0.2.5 Apache 2.0 named-regexp nekohtml.jar 1.9.21 Apache License, Version 2.0 Andy Clark, Marc Guillemot nekohtml.jar 1.9.17 Apache License Version 2.0 World Wide Web Consortium (W3C) nipper.exe 1.3.17 GPL 3 Nipper Software products nmap.exe 7.95 GPL Nmap npcap 1.80-oem GPL Nmap OpenForecast-0.4.0.jar 0.4 LGPLv2 OpenForecast oscache.jar 1.1 The OpenSymphony Software License, Version 1.1 The OpenSymphony Group pdfbox.jar 2.0.8 Apache 2.0 with BSD Apache phantomjs.exe 2.1.1 BSD Phantom JS poi-3.0.1-FINAL-20070705.jar 3.0.1-FINAL-20070705 Apache License Version 2.0 Apache Software Foundation poi-3.13-20150929.jar 3.13 Apache 2.0 Apache poi-3.9-20121203.jar 3.9 Apache License, Version 2.0 Apache Software Foundation poi-ooxml-3.13-20150929.jar 3.13 Apache 2.0 Apache poi-ooxml-3.9-20121203.jar 3.9 Apache License, Version 2.0 Apache Software Foundation poi-ooxml-schemas-3.13-20150929.jar 3.13 Apache 2.0 Apache poi-ooxml-schemas-3.9-20121203.jar 3.9 Apache License, Version 2.0 Apache Software Foundation postgresql-42.2.2.jar 42.2.2 BSD Postgres postgresql_jdbc4.jar 9.2.1 BSD Postgres prefuse.jar beta version BSD License Prefuse radclient3.jar 3.43p Radius Client License AXL Software rocksaw-1.0.1.jar 1.0.1 Apache 2.0 RockSaw RXTXcomm.jar 2.2 LGPL 2.1 RXTX saaj.jar 1.2 Java Specifications JCP sblimCIMClient.jar 1.3.9.3 Open Source(Public License) SBLIM servlet-api.jar 3.1.FR Apache License, Version 2.0 Apache Software Foundation slf4j-api-1.6.1.jar 1.6.1 MIT License slf4j-jdk14-1.6.1.jar 1.6.1 MIT License SMSLib.jar 3.5.3 Apache License Version 2.0 SMSLIB SMSServer.jar 3.5.3 Apache License Version 2.0 SMSLIB snakeyaml-1.11.jar 1.11.0 Apache 2.0 SnakeYAML SparkGateway.jar 5.0 OEM License Remote Spark Corp. ss_css2.jar 1.4.1 LGPLv2.1 Silicon Graphics, Inc. standard.jar 1.0.3 Apache 1.0 Apache Software Foundation struts-core-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts-el-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts-extras-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts-taglib-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts-tiles-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts.jar 1.1 Apache License, Version 1.1 syslog4j-0.9.46-bin.jar 0.9.46 LGPL Version 2.1 Productivity.ORG terminal-ssh-maverick.jar 2.0.9 MIT Terminal Components Maverick SSH terminal-web.jar 2.0.9 MIT Terminal Components Maverick SSH terminal.jar 2.0.9 MIT Terminal Components Maverick SSH tomcat-api.jar 8.5.13 Apache License, Version 2.0 Apache Software Foundation tomcat-coyote.jar 8.5.13 Apache License, Version 2.0 Apache Software Foundation tomcat-dbcp.jar 8.5.13 Apache License, Version 2.0 Apache Software Foundation tomcat-i18n-es.jar 8.5.13 Apache License, Version 2.0 Apache Software Foundation. All material on this website is Copyright , The Apache Software Foundation. Apache POI, POI, Apache, the Apache feather logo, and the Apache POI project All material on this website is Copyright , The Apache Software Foundation. Apache POI, POI, Apache, the Apache feather logo, and the Apache POI project Download Java EE API JARs as OSGI bundles. 0. Apache Poi - Algo . 0. Setting up Apache POI API in Netbeans, 0. Apache poi-3.10-FINAL- .jar download link. 0. Missing poi-contrib-.jar in the new release of POI. 1. Download a file with Apache POI. 0. importing Apache POI Java. 1. Using Apache poi. 0. Apache POI - Java API To Access Microsoft Format Files Last Release on 8. Apache POI ExcelAnt 57 usages. org.apache.poi poi-excelant Apache. Apache POI - Java API To Two Solutions to address Spring Initializer not supporting Java 8 Apache POI Word - Practice Apache POI Word - Line Chart Apache POI Word - Pie Chart Apache POI Apache POI - Java API To Access Microsoft Format Files Last Release on 8. Apache POI ExcelAnt 57 usages. org.apache.poi poi-excelant Apache. Apache POI - Java API To Two Solutions to address Spring Initializer not supporting Java 8 Apache POI Word - Practice Apache POI Word - Line Chart Apache POI Word - Pie Chart Apache POI Word - Bar Chart Apache POI Word - Header And Footer Java Split Util Without Worrying About IndexOutOfBoundException Apache POI Word - Style. Question How can I convert DOCX files to PDF format using Java? // Java code snippet example for converting DOCX to PDF using Apache POIimport java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import org.apache.poi.xwpf.usermodel.XWPFDocument;import com.itextpdf.html2pdf.HtmlConverter;public class DocxToPdf { public static void main(String[] args) throws Exception { // Load the DOCX file FileInputStream docxFile = new FileInputStream(new File("input.docx")); XWPFDocument document = new XWPFDocument(docxFile); // Convert the DOCX to HTML // For illustration, you might need a more comprehensive HTML conversion ByteArrayOutputStream outStream = new ByteArrayOutputStream(); document.write(outStream); // Convert HTML to PDF HtmlConverter.convertToPdf(new String(outStream.toByteArray()), new FileOutputStream("output.pdf")); // Clean up outStream.close(); docxFile.close(); System.out.println("Conversion completed: output.pdf"); }} Answer Converting DOCX files to PDF in Java can be efficiently accomplished using libraries such as Apache POI for reading DOCX files and iText or Apache PDFBox for creating PDF files. This process is widely used in applications that require document conversion and manipulation. Causes Using outdated libraries that don't support DOCX to PDF conversion. Improper handling of file paths and streams. Not accounting for images, formatting, and special elements in DOCX. Solutions Utilize Apache POI to read the DOCX file. Integrate iText or Apache PDFBox to handle PDF creation. Ensure proper error handling during file I/O operations. Common Mistakes Mistake: Not including necessary dependencies in the build file. Solution: Ensure you have included the appropriate libraries like Apache POI and iText in your `pom.xml` or build file. Mistake: Forgetting to close file streams after use. Solution: Always close the FileInputStream and FileOutputStream in a finally block or use try-with-resources. Mistake: RelyingComments
Apache License, Version 2.0 The Apache Software Foundation lucene-queryparser.jar 4.6.0 Apache License, Version 2.0 The Apache Software Foundation lucene-suggest.jar 4.6.0 Apache License, Version 2.0 The Apache Software Foundation Mail.jar 1.4.7 Binary Code License JavaMail API Mail.jar 1.4.7 CDDL Version 1.0 Sun Microsystems, Inc. maverick-all.jar 1.4.18 SSHTOOLS SOFTWARE LICENSE J2SSH Maverick maverick-legacy-client-all.jar 1.6.28 OEM Maverick Legacy maverick-legacy-server-all.jar 1.6.28 OEM Maverick Legacy msgpack-0.6.7.jar 0.6.7 Apache License, Version 2.0 MessagePack for Java NamedRegEx.jar 0.2.5 Apache 2.0 named-regexp nekohtml.jar 1.9.21 Apache License, Version 2.0 Andy Clark, Marc Guillemot nekohtml.jar 1.9.17 Apache License Version 2.0 World Wide Web Consortium (W3C) nipper.exe 1.3.17 GPL 3 Nipper Software products nmap.exe 7.95 GPL Nmap npcap 1.80-oem GPL Nmap OpenForecast-0.4.0.jar 0.4 LGPLv2 OpenForecast oscache.jar 1.1 The OpenSymphony Software License, Version 1.1 The OpenSymphony Group pdfbox.jar 2.0.8 Apache 2.0 with BSD Apache phantomjs.exe 2.1.1 BSD Phantom JS poi-3.0.1-FINAL-20070705.jar 3.0.1-FINAL-20070705 Apache License Version 2.0 Apache Software Foundation poi-3.13-20150929.jar 3.13 Apache 2.0 Apache poi-3.9-20121203.jar 3.9 Apache License, Version 2.0 Apache Software Foundation poi-ooxml-3.13-20150929.jar 3.13 Apache 2.0 Apache poi-ooxml-3.9-20121203.jar 3.9 Apache License, Version 2.0 Apache Software Foundation poi-ooxml-schemas-3.13-20150929.jar 3.13 Apache 2.0 Apache poi-ooxml-schemas-3.9-20121203.jar 3.9 Apache License, Version 2.0 Apache Software Foundation postgresql-42.2.2.jar 42.2.2 BSD Postgres postgresql_jdbc4.jar 9.2.1 BSD Postgres prefuse.jar beta version BSD License Prefuse radclient3.jar 3.43p Radius Client License AXL Software rocksaw-1.0.1.jar 1.0.1 Apache 2.0 RockSaw RXTXcomm.jar 2.2 LGPL 2.1 RXTX saaj.jar 1.2 Java Specifications JCP sblimCIMClient.jar 1.3.9.3 Open Source(Public License) SBLIM servlet-api.jar 3.1.FR Apache License, Version 2.0 Apache Software Foundation slf4j-api-1.6.1.jar 1.6.1 MIT License slf4j-jdk14-1.6.1.jar 1.6.1 MIT License SMSLib.jar 3.5.3 Apache License Version 2.0 SMSLIB SMSServer.jar 3.5.3 Apache License Version 2.0 SMSLIB snakeyaml-1.11.jar 1.11.0 Apache 2.0 SnakeYAML SparkGateway.jar 5.0 OEM License Remote Spark Corp. ss_css2.jar 1.4.1 LGPLv2.1 Silicon Graphics, Inc. standard.jar 1.0.3 Apache 1.0 Apache Software Foundation struts-core-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts-el-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts-extras-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts-taglib-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts-tiles-1.3.11.jar 1.3.11-SNAPSHOT Apache License, Version 2.0 Apache Software Foundation struts.jar 1.1 Apache License, Version 1.1 syslog4j-0.9.46-bin.jar 0.9.46 LGPL Version 2.1 Productivity.ORG terminal-ssh-maverick.jar 2.0.9 MIT Terminal Components Maverick SSH terminal-web.jar 2.0.9 MIT Terminal Components Maverick SSH terminal.jar 2.0.9 MIT Terminal Components Maverick SSH tomcat-api.jar 8.5.13 Apache License, Version 2.0 Apache Software Foundation tomcat-coyote.jar 8.5.13 Apache License, Version 2.0 Apache Software Foundation tomcat-dbcp.jar 8.5.13 Apache License, Version 2.0 Apache Software Foundation tomcat-i18n-es.jar 8.5.13 Apache License, Version 2.0 Apache Software Foundation
2025-04-02Question How can I convert DOCX files to PDF format using Java? // Java code snippet example for converting DOCX to PDF using Apache POIimport java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import org.apache.poi.xwpf.usermodel.XWPFDocument;import com.itextpdf.html2pdf.HtmlConverter;public class DocxToPdf { public static void main(String[] args) throws Exception { // Load the DOCX file FileInputStream docxFile = new FileInputStream(new File("input.docx")); XWPFDocument document = new XWPFDocument(docxFile); // Convert the DOCX to HTML // For illustration, you might need a more comprehensive HTML conversion ByteArrayOutputStream outStream = new ByteArrayOutputStream(); document.write(outStream); // Convert HTML to PDF HtmlConverter.convertToPdf(new String(outStream.toByteArray()), new FileOutputStream("output.pdf")); // Clean up outStream.close(); docxFile.close(); System.out.println("Conversion completed: output.pdf"); }} Answer Converting DOCX files to PDF in Java can be efficiently accomplished using libraries such as Apache POI for reading DOCX files and iText or Apache PDFBox for creating PDF files. This process is widely used in applications that require document conversion and manipulation. Causes Using outdated libraries that don't support DOCX to PDF conversion. Improper handling of file paths and streams. Not accounting for images, formatting, and special elements in DOCX. Solutions Utilize Apache POI to read the DOCX file. Integrate iText or Apache PDFBox to handle PDF creation. Ensure proper error handling during file I/O operations. Common Mistakes Mistake: Not including necessary dependencies in the build file. Solution: Ensure you have included the appropriate libraries like Apache POI and iText in your `pom.xml` or build file. Mistake: Forgetting to close file streams after use. Solution: Always close the FileInputStream and FileOutputStream in a finally block or use try-with-resources. Mistake: Relying
2025-04-15In last chapter, we created Action Keywords and placed them in to the 'DataEngine' excel sheet, now we need Apache POI in place to connect with the excel sheet in the Selenium Test.Set Up Data Engine - Apache POI (Excel)We need a way to open this Excel sheet and read data from it within this Selenium test script. For this purpose, I use the Apache POI library, which allows you to read, create and edit Microsoft Office-documents using Java. The classes and methods we are going to use to read data from Excel sheet are located in the 'org.apache.poi.hssf.usermodel' package.Reading Data from Excel'Download JAR files' of Apache POI. You can download Apache POI Jar files from here. Note: The latest version in Sep'14 is 'poi - 3.10.1'Once you downloaded the JAR files, then 'Add Jars' files to your project library. That’s all about the configuration of Apache POI with eclipse. Now you are ready to write code.Create a ‘New Package’ and name it as ‘utility’, by right click on the Project folder and select New > Package.Create a ‘New Class‘ file, by right click on the ‘utility‘ Package and select New > Class and name it as ‘ExcelUtils‘. First we will write basic read method.package utility;import java.io.FileInputStream;import org.apache.poi.xssf.usermodel.XSSFCell;import org.apache.poi.xssf.usermodel.XSSFSheet;import org.apache.poi.xssf.usermodel.XSSFWorkbook; public class ExcelUtils { private static XSSFSheet ExcelWSheet; private static XSSFWorkbook ExcelWBook; private static XSSFCell Cell; //This method is to set the File path and to open the Excel file //Pass Excel Path and SheetName as Arguments to this method public static void setExcelFile(String Path,String SheetName) throws Exception { FileInputStream ExcelFile = new FileInputStream(Path); ExcelWBook = new XSSFWorkbook(ExcelFile); ExcelWSheet = ExcelWBook.getSheet(SheetName); } //This method is to read the test data from the Excel cell //In this we are passing parameters/arguments as Row Num and Col Num public static String getCellData(int RowNum, int ColNum) throws Exception{ Cell = ExcelWSheet.getRow(RowNum).getCell(ColNum); String CellData = Cell.getStringCellValue(); return CellData; } }Now Modify your main 'DriverScript'. With the help of Excel Utility, open the Excel file, read Action Keywords one by one and on each Action Keyword perform the required step.package executionEngine;import config.ActionKeywords;import utility.ExcelUtils;public class DriverScript { public static void main(String[] args) throws Exception { // Declaring the path of the Excel file with the name of the Excel file String sPath = "D://Tools QA Projects//trunk//Hybrid Keyword Driven//src//dataEngine//DataEngine.xlsx"; // Here we are passing the Excel path and SheetName as arguments to connect with Excel file ExcelUtils.setExcelFile(sPath, "Test Steps"); //Hard coded values are used for Excel row & columns for now //In later chapters we will replace these hard coded values with varibales //This is the loop for reading the values of the column 3 (Action Keyword) row by row for (int iRow=1;iRow9;iRow++){ //Storing the value of excel cell in sActionKeyword string variable String sActionKeyword = ExcelUtils.getCellData(iRow, 3); //Comparing the value of Excel cell with all the project keywords if(sActionKeyword.equals("openBrowser")){ //This will execute if the excel cell value is 'openBrowser' //Action Keyword is called here to perform action ActionKeywords.openBrowser();} else if(sActionKeyword.equals("navigate")){ ActionKeywords.navigate();} else if(sActionKeyword.equals("click_MyAccount")){ ActionKeywords.click_MyAccount();} else if(sActionKeyword.equals("input_Username")){
2025-04-23May choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.END OF TERMS AND CONDITIONSThe following notices are supplied in accordance with clause 4 (d) of the preceding licence:Commons VFSApache Commons VFS Copyright 2001-2008 The Apache Software FoundationThis product includes software developed by The Apache Software Foundation (opens in a new tab).Commons IOApache Commons Lang Copyright 2001-2010 The Apache Software FoundationThis product includes software developed by The Apache Software Foundation (opens in a new tab).log4jApache log4j Copyright 2007 The Apache Software FoundationThis product includes software developed by The Apache Software Foundation (opens in a new tab).Simple Logging Facade for Java SLF4JCopyright (c) 2004-2011 QOS.ch All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.TikaApache Tika Copyright 2007-2010 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (opens in a new tab).POIApache POI Copyright 2001-2009 The Apache Software FoundationThis product includes software developed by The Apache Software Foundation (opens in a new tab).Unit testing support is provided by JUnit, under the Common Public License Version 1.0: See (opens in a new tab) See (opens in a new tab)Xerces JavaApache Xerces Java Copyright 1999-2008 The Apache Software FoundationThis product includes software developed at The Apache Software Foundation (opens in a new tab).Portions of this software were originally based on the following:• software copyright (c) 1999, IBM Corporation., See (opens in a new tab).• software copyright (c) 1999, Sun Microsystems., (opens in a new tab).• voluntary contributions made by Paul Eng on behalf of the Apache Software Foundation that were originally developed at iClick, Inc., software copyright (c) 1999.This product includes software developed by the Apache Software Foundation ( (opens in a
2025-04-10• Chair (POI) • Colossal Coliseum • Container Yard (POI) • Convenience Store (POI) • Copter Crash (POI) • Coral Castle • Coral Cove (POI) • Corrupted Areas • Crackshot's Cabin (POI) • Crashed Battle Bus (POI) • Crashed Cargo (POI) • Crusty Cruiser (POI) • Destroyed Stadium (POI) • Dirty Docks • Doom House (POI) • Doom's Domain • Doom's Throne (POI) • Drop Shop (POI) • Durrr Burger Food Truck (POI) • Dusted Depot (POI) • Dusty Depot • Dusty Diner • Dusty Divot • Dusty Mountain • E.G.O. Barracks (POI) • E.G.O. Comm Tower (POI) • E.G.O. Hangar (POI) • E.G.O. Science Station (POI) • E.G.O. Staging Post (POI) • Expedition Base (POI) • Expedition Outposts • Eye Land (POI) • FN Radio (POI) • Factory (POI) • Fancy View (POI) • Fatal Fields • Filming Studio (POI) • Float Fillet (POI) • Floating Island • Flopper Farm (POI) • Flopper Pond (POI) • Flush Factory • Flushed Factory (POI) • Fork Knife Food Truck (POI) • Fort Crumpet (POI) • Frenzy Farm • Friendship Monument (POI) • Frosty Flights • Frozen Meteor (POI) • Fury at the Fjords (POI) • Gas N' Grub (POI) • Ghost Flowers (POI) • Ghost House (POI) • Gorgeous Gorge (POI) • Gotham City • Greasy Graves (POI) • Greasy Grove • Green Steel Bridge (Chapter 1) • Green Steel Bridge (POI) • Happy Hamlet • Haunted Hills • Hayman (POI) • Heroes Park (POI) • High Hoops (POI) • Hilltop House (POI) • Hot Springs (POI) • Hunter's Haven • Hut Watch (POI) • Hydro 16 (POI) • Ice Throne (POI) • Isle Of The Storm (POI) • Jennifer Walters' Office (POI) • Junk Junction • Junkyard (POI) • Kit's Cantina (POI) • Lake Canoe (POI) • Lament of the Landlubbers (POI) • Lazy Lagoon • Lazy Lake • Lazy Links • Leaky Lake • Lockie’s Lighthouse (POI) • Lonely Lodge • Loot Lake • Lucky Landing • Lumber Lodge (POI) • Manor • Mansion (POI) • Mega Mall • Moisty Mire • Moisty Palms • Mount F8 (POI) • Mount H7 (POI) • Mount Kay (POI) • Mowdown (POI) • Neo Tilted • No Sweat Storage (POI) • No. 2 (POI) • Northern Houses (POI) • Open Soccer Stadium (POI) • Outpost Delta Kringle (POI) • Outskirts (POI) • Pandora (POI) • Paradise Palms • Pawntoon (POI) • Pipeman (POI) • Pirate Camps (POI) • Pirate Radio (POI) • Pizza Pete's Food Truck (POI) • Pleasant Park • Plumberton (POI) • Polar Peak • Portals • Pressure Plant • Prison (POI) • Pristine Point (POI) • Pueblo (POI) • RV Park (POI) • Race Track (POI) • Rainbow Rentals
2025-04-16