You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 4.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # Apache POI
  2. A Java library for reading and writing Microsoft Office binary and OOXML file formats.
  3. The Apache POI Project's mission is to create and maintain Java APIs for manipulating various file formats based upon the Office Open XML standards (OOXML) and Microsoft's OLE 2 Compound Document format (OLE2). In short, you can read and write MS Excel files using Java. In addition, you can read and write MS Word and MS PowerPoint files using Java. Apache POI is your Java Excel solution (for Excel 97-2008). We have a complete API for porting other OOXML and OLE2 formats and welcome others to participate.
  4. OLE2 files include most Microsoft Office files such as XLS, DOC, and PPT as well as MFC serialization API based file formats. The project provides APIs for the OLE2 Filesystem (POIFS) and OLE2 Document Properties (HPSF).
  5. Office OpenXML Format is the new standards based XML file format found in Microsoft Office 2007 and 2008. This includes XLSX, DOCX and PPTX. The project provides a low level API to support the Open Packaging Conventions using openxml4j.
  6. For each MS Office application there exists a component module that attempts to provide a common high level Java api to both OLE2 and OOXML document formats. This is most developed for Excel workbooks (SS=HSSF+XSSF). Work is progressing for Word documents (WP=HWPF+XWPF) and PowerPoint presentations (SL=HSLF+XSLF).
  7. The project has some support for Outlook (HSMF). Microsoft opened the specifications to this format in October 2007. We would welcome contributions.
  8. There are also projects for Visio (HDGF and XDGF), TNEF (HMEF), and Publisher (HPBF).
  9. This library includes the following components, roughly in descending order of maturity:
  10. * Excel spreadsheets (Common SS = HSSF, XSSF, and SXSSF)
  11. * PowerPoint slideshows (Common SL = HSLF and XSLF)
  12. * Word processing documents (Common WP = HWPF and XWPF)
  13. * Outlook email (HSMF and HMEF)
  14. * Visio diagrams (HDGF and XDGF)
  15. * Publisher (HPBF)
  16. And lower-level, supporting components:
  17. * OLE2 Filesystem (POIFS)
  18. * OLE2 Document Properties (HPSF)
  19. * TNEF (HMEF) for Outlook winmail.dat files
  20. * OpenXML4J (OOXML)
  21. Components named H??F are for reading or writing OLE2 binary formats.
  22. Components named X??F are for reading or writing OpenOffice XML (OOXML) formats.
  23. # Getting started
  24. Website: https://poi.apache.org/
  25. `Mailing lists`_:
  26. * `Developers`_
  27. * `Users`_
  28. * `General`_ (release announcements)
  29. Bug tracker:
  30. * `Bugzilla`_
  31. * `GitHub pull requests`_
  32. Source code:
  33. * Official `Apache Subversion repo`_ at apache.org
  34. * `ViewVC repo browser`_ at apache.org
  35. * `GitHub git mirror`_ at github.com
  36. Requires Java 1.8 or later.
  37. # Contributing
  38. * Download and install svn or git, Java JDK 1.8+, and Apache Ant 1.8+ or Gradle
  39. * Check out the code from svn or git
  40. * Import the project into Eclipse or your favorite IDE
  41. * Write a unit test:
  42. * Binary formats and Common APIs: poi/src/test/java/org/apache/poi/
  43. * OOXML APIs only: poi-ooxml/src/test/java/org/apache/poi/
  44. * Scratchpad (Binary formats): poi-scratchpad/src/test/java/org/apache/poi/
  45. * Test files: test-data/
  46. * Navigate the source, make changes, and run unit tests to verify
  47. * Binary formats and Common APIs: poi/src/main/java/org/apache/poi/
  48. * OOXML APIs only: poi-ooxml/src/main/java/org/apache/poi/
  49. * Scratchpad (Binary formats): poi-scratchpad/src/main/java/org/apache/poi/
  50. * Examples: poi-examples/src/main/java/org/apache/poi/
  51. * More info: `How To Build page`_ at apache.org
  52. .. _Mailing lists: https://poi.apache.org/mailinglists.html
  53. .. _Developers: https://lists.apache.org/list.html?dev@poi.apache.org
  54. .. _Users: https://lists.apache.org/list.html?user@poi.apache.org
  55. .. _General: https://lists.apache.org/list.html?general@poi.apache.org
  56. .. _Bugzilla: https://bz.apache.org/bugzilla/buglist.cgi?product=POI
  57. .. _GitHub pull requests: https://github.com/apache/poi/pulls
  58. .. _Apache Subversion repo: https://svn.apache.org/repos/asf/poi/trunk
  59. .. _ViewVC repo browser: https://svn.apache.org/viewvc/poi/trunk
  60. .. _GitHub git mirror: https://github.com/apache/poi
  61. .. _How To Build page: http://poi.apache.org/devel/