intro.rst 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. .. _intro:
  2. Introduction
  3. ============
  4. PHPPresentation is a library written in pure PHP that provides a set of
  5. classes to write to different presentation file formats, i.e. Microsoft
  6. `Office Open XML <http://en.wikipedia.org/wiki/Office_Open_XML>`
  7. (.pptx) and OASIS `Open Document Format for Office Applications
  8. <http://en.wikipedia.org/wiki/OpenDocument>`__ (.odp).
  9. PHPPresentation is an open source project licensed under the terms of `LGPL
  10. version 3 <https://github.com/PHPOffice/PHPPresentation/blob/develop/COPYING.LESSER>`__.
  11. PHPPresentation is aimed to be a high quality software product by incorporating
  12. `continuous integration <https://travis-ci.org/PHPOffice/PHPPresentation>`__ and
  13. `unit testing <http://phpoffice.github.io/PHPPresentation/coverage/develop/>`__.
  14. You can learn more about PHPPresentation by reading this Developers'
  15. Documentation and the `API Documentation <http://phpoffice.github.io/PHPPresentation/docs/develop/>`__.
  16. Features
  17. --------
  18. - Create an in-memory presentation representation
  19. - Set presentation meta data (author, title, description, etc)
  20. - Add slides from scratch or from existing one
  21. - Supports different fonts and font styles
  22. - Supports different formatting, styles, fills, gradients
  23. - Supports hyperlinks and rich-text strings
  24. - Add images with different styles (positioning, rotation, shadow)
  25. - Set printing options (header, footer, page margins, paper size, orientation)
  26. - Output to different file formats: PowerPoint 2007 (.pptx), OpenDocument Presentation (.odp), Serialized Spreadsheet)
  27. - ... and lots of other things!
  28. File formats
  29. ------------
  30. Below are the supported features for each file formats.
  31. Writers
  32. ~~~~~~~
  33. +---------------------------+----------------------+--------+-------+-------+-------+
  34. | Features | | PPTX | ODP | HTML | PDF |
  35. +===========================+======================+========+=======+=======+=======+
  36. | **Document** | Mark as final | ✓ | | | |
  37. +---------------------------+----------------------+--------+-------+-------+-------+
  38. | **Document Properties** | Standard | ✓ | ✓ | | |
  39. +---------------------------+----------------------+--------+-------+-------+-------+
  40. | | Custom | | | | |
  41. +---------------------------+----------------------+--------+-------+-------+-------+
  42. | **Slides** | | ✓ | ✓ | | |
  43. +---------------------------+----------------------+--------+-------+-------+-------+
  44. | | Name | | ✓ | | |
  45. +---------------------------+----------------------+--------+-------+-------+-------+
  46. | **Element Shape** | Image | ✓ | ✓ | | |
  47. +---------------------------+----------------------+--------+-------+-------+-------+
  48. | | Hyperlink | ✓ | ✓ | | |
  49. +---------------------------+----------------------+--------+-------+-------+-------+
  50. | | Line | ✓ | ✓ | | |
  51. +---------------------------+----------------------+--------+-------+-------+-------+
  52. | | MemoryImage | ✓ | ✓ | | |
  53. +---------------------------+----------------------+--------+-------+-------+-------+
  54. | | RichText | ✓ | ✓ | | |
  55. +---------------------------+----------------------+--------+-------+-------+-------+
  56. | | Table | ✓ | ✓ | | |
  57. +---------------------------+----------------------+--------+-------+-------+-------+
  58. | | Text | ✓ | ✓ | | |
  59. +---------------------------+----------------------+--------+-------+-------+-------+
  60. | **Charts** | Bar3D | ✓ | ✓ | | |
  61. +---------------------------+----------------------+--------+-------+-------+-------+
  62. | | Line | ✓ | ✓ | | |
  63. +---------------------------+----------------------+--------+-------+-------+-------+
  64. | | Pie3D | ✓ | ✓ | | |
  65. +---------------------------+----------------------+--------+-------+-------+-------+
  66. | | Scatter | ✓ | ✓ | | |
  67. +---------------------------+----------------------+--------+-------+-------+-------+
  68. Readers
  69. ~~~~~~~
  70. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  71. | Features | | PPTX | ODP | HTML | PDF | PPT |
  72. +===========================+======================+========+=======+=======+=======+=======+
  73. | **Document** | Mark as final | ✓ | | | | |
  74. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  75. | **Document Properties** | Standard | ✓ | ✓ | | | |
  76. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  77. | | Custom | | | | | |
  78. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  79. | **Slides** | | ✓ | ✓ | | | |
  80. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  81. | | Name | | ✓ | | | |
  82. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  83. | **Element Shape** | Image | ✓ | ✓ | | | ✓ |
  84. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  85. | | Hyperlink | ✓ | ✓ | | | ✓ |
  86. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  87. | | RichText | ✓ | ✓ | | | ✓ |
  88. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  89. | | Table | | | | | |
  90. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  91. | | Text | ✓ | ✓ | | | ✓ |
  92. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  93. | **Charts** | Bar3D | | | | | |
  94. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  95. | | Line | | | | | |
  96. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  97. | | Pie3D | | | | | |
  98. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  99. | | Scatter | | | | | |
  100. +---------------------------+----------------------+--------+-------+-------+-------+-------+
  101. Contributing
  102. ------------
  103. We welcome everyone to contribute to PHPPresentation. Below are some of the
  104. things that you can do to contribute:
  105. - Read `our contributing
  106. guide <https://github.com/PHPOffice/PHPPresentation/blob/master/CONTRIBUTING.md>`__
  107. - `Fork us <https://github.com/PHPOffice/PHPPresentation/fork>`__ and `request
  108. a pull <https://github.com/PHPOffice/PHPPresentation/pulls>`__ to the
  109. `develop <https://github.com/PHPOffice/PHPPresentation/tree/develop>`__
  110. branch
  111. - Submit `bug reports or feature
  112. requests <https://github.com/PHPOffice/PHPPresentation/issues>`__ to GitHub
  113. - Follow `@PHPOffice <https://twitter.com/PHPOffice>`__ on Twitter