PHPWord Versions Save

A pure PHP library for reading and writing word processing documents

0.9.0

10 years ago

This release marked the transformation to namespaces (PHP 5.3+).

Features

  • Image: Ability to use remote or GD images using addImage() on sections, headers, footer, cells, and textruns - @ivanlanin
  • Header: Ability to use remote or GD images using addWatermark() - @ivanlanin

Bugfixes

  • Preserve text doesn't render correctly when the text is not the first word, e.g. 'Page {PAGE}' - @ivanlanin

Miscellaneous

  • Move documentation to Read The Docs - @Progi1984 @ivanlanin #82
  • Reorganize and redesign samples folder - @ivanlanin #137
  • Use PhpOffice\PhpWord namespace for PSR compliance - @RomanSyroeshko @gabrielbull #159, #58
  • Restructure folders and change folder name Classes to src and Tests to test for PSR compliance - @RomanSyroeshko @gabrielbull
  • Compliance to phpDocumentor - @ivanlanin
  • Merge Style\TableFull into Style\Table. Style\TableFull is deprecated - @ivanlanin #160
  • Merge Section\MemoryImage into Section\Image. Section\Image is deprecated - @ivanlanin #160

0.8.1

10 years ago

This is a bugfix release for image detection functionality.

  • Added fallback for computers that do not have exif_imagetype - @bskrtich, @gabrielbull

0.8.0

10 years ago

This release merged a lot of improvements from the community. Unit tests introduced in this release and has reached 90% code coverage.

Features

  • Template: Permit to save a template generated as a file (PHPWord_Template::saveAs()) - @RomanSyroeshko #56, #57
  • Word2007: Support sections page numbering - @gabrielbull
  • Word2007: Added line height methods to mirror the line height settings in Word in the paragraph styling - @gabrielbull
  • Word2007: Added support for page header & page footer height - @JillElaine #5
  • General: Add ability to manage line breaks after image insertion - @bskrtich #6, #66, #84
  • Template: Ability to limit number of replacements performed by setValue() method of Template class - @RomanSyroeshko #52, #53, #85
  • Table row: Repeat as header row & allow row to break across pages - @ivanlanin #48, #86
  • Table: Table width in percentage - @ivanlanin #48, #86
  • Font: Superscript and subscript - @ivanlanin #48, #86
  • Paragraph: Hanging paragraph - @ivanlanin #48, #86
  • Section: Multicolumn and section break - @ivanlanin #48, #86
  • Template: Ability to apply XSL style sheet to Template - @RomanSyroeshko #46, #47, #83
  • General: PHPWord_Shared_Font::pointSizeToTwips() converter - @ivanlanin #87
  • Paragraph: Ability to define normal paragraph style with PHPWord::setNormalStyle() - @ivanlanin #87
  • Paragraph: Ability to define parent style (basedOn) and style for following paragraph (next) - @ivanlanin #87
  • Clone table rows on the fly when using a template document - @jeroenmoors #44, #88
  • Initial addition of basic footnote support - @deds #16
  • Paragraph: Ability to define paragraph pagination: widow control, keep next, keep lines, and page break before - @ivanlanin #92
  • General: PHPWord_Style_Font refactoring - @ivanlanin #93
  • Font: Use points instead of halfpoints internally. Conversion to halfpoints done during XML Writing. - @ivanlanin #93
  • Paragraph: setTabs() function - @ivanlanin #92
  • General: Basic support for TextRun on ODT and RTF - @ivanlanin #99
  • Reader: Basic Reader for Word2007 - @ivanlanin #104
  • TextRun: Allow Text Break in Text Run - @bskrtich #109
  • General: Support for East Asian fontstyle - @jhfangying #111, #118
  • Image: Use exif_imagetype to check image format instead of extension name - @gabrielbull #114
  • General: Setting for XMLWriter Compatibility option - @bskrtich #103
  • MemoryImage: Allow remote image when allow_url_open = on - @ivanlanin #122
  • TextBreak: Allow font and paragraph style for text break - @ivanlanin #18

Bugfixes

  • Fixed bug with cell styling - @gabrielbull
  • Fixed bug list items inside of cells - @gabrielbull
  • Adding a value that contains "&" in a template breaks it - @SiebelsTim #51
  • Example in README.md is broken - @Progi1984 #89
  • General: PHPWord_Shared_Drawing::centimetersToPixels() conversion - @ivanlanin #94
  • Footnote: Corrupt DOCX reported by MS Word when sections > 1 and not every sections have footnote - @ivanlanin #125

Miscellaneous

  • UnitTests - @Progi1984

0.7.0

10 years ago

This is the first release after a long development hiatus in CodePlex. This release initialized ODT and RTF Writer, along with some other new features for the existing Word2007 Writer, e.g. tab, multiple header, rowspan and colspan. Composer and Travis were added.

Features

  • Implement RTF Writer - @Progi1984 #1
  • Implement ODT Writer - @Progi1984 #2
  • Word2007: Add rowspan and colspan to cells - @kaystrobach
  • Word2007: Support for tab stops - @RLovelett
  • Word2007: Support Multiple headers - @RLovelett
  • Word2007: Wrapping Styles to Images - @gabrielbull
  • Added support for image wrapping style - @gabrielbull

Bugfixes

  • "Warning: Invalid error type specified in ...\PHPWord.php on line 226" is thrown when the specified template file is not found - @RomanSyroeshko #32
  • PHPWord_Shared_String.IsUTF8 returns FALSE for Cyrillic UTF-8 input - @RomanSyroeshko #34
  • Temporary files naming logic in PHPWord_Template can lead to a collision - @RomanSyroeshko #38

Miscellaneous

  • Add superscript/subscript styling in Excel2007 Writer - @MarkBaker
  • add indentation support to paragraphs - @deds
  • Support for Composer - @Progi1984 #27
  • Basic CI with Travis - @Progi1984
  • Added PHPWord_Exception and exception when could not copy the template - @Progi1984
  • IMPROVED: Moved examples out of Classes directory - @Progi1984
  • IMPROVED: Advanced string replace in setValue for Template - @Esmeraldo #49