Skip to content

Commit 38cb04d

Browse files
Roman SyroeshkoRoman Syroeshko
authored andcommitted
Merge pull request #605 from PHPOffice/hotfix-0.12.1
Hotfix 0.12.1
2 parents 3f13650 + e6671d6 commit 38cb04d

File tree

8 files changed

+196
-3998
lines changed

8 files changed

+196
-3998
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@ php:
99

1010
matrix:
1111
allow_failures:
12-
- php: 5.2
1312
- php: hhvm
1413

1514
env:
1615
global:
1716
- secure: "Sq+6bVtnPsu0mWX8DWQ+9bGAjxMcGorksUiHc4YIXEJsuDfVmVlH8tTD547IeCjDAx9MxXerZ2Z4HSjxTB70VEnJPvZMHI/EZn4Ny31YLHEthdZbV5Gd1h0TGp8VOzPKGShvGrtGBX6MvMfgpK4zuieVWbSfdKeecm8ZNLMpUd4="
1817

19-
before_script:
18+
before_install:
2019
## Packages
21-
- sudo apt-get -qq update > /dev/null
22-
- sudo apt-get -qq install graphviz > /dev/null
20+
- sudo apt-get update -qq
21+
- sudo apt-get install -y graphviz
22+
23+
before_script:
2324
## Composer
2425
- composer self-update
25-
- composer install --prefer-source --dev
26+
- composer install --prefer-source
2627
## PHPDocumentor
2728
- mkdir -p build/docs
2829
- mkdir -p build/coverage
@@ -46,4 +47,4 @@ after_script:
4647
- bash .travis_shell_after_success.sh
4748
## Scrutinizer
4849
- wget https://scrutinizer-ci.com/ocular.phar
49-
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
50+
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

CHANGELOG.md

Lines changed: 54 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1-
# Changelog
1+
CHANGELOG
2+
=========
23

34
This is the changelog between releases of PHPWord. Releases are listed in reverse chronological order with the latest version listed on top, while additions/changes in each release are listed in chronological order. Changes in each release are divided into three parts: added or change features, bugfixes, and miscellaneous improvements. Each line contains short information about the change made, the person who made it, and the related issue number(s) in GitHub.
45

5-
## 0.12.0 - 3 January 2015
6+
0.12.1 (30 August 2015)
7+
-------------------
8+
9+
Maintenance release. This release is focused primarily on ``TemplateProcessor``.
10+
11+
### Changes
12+
- Changed visibility of all private properties and methods of ``TemplateProcessor`` to ``protected``. - @RomanSyroeshko #498
13+
- Improved performance of ``TemplateProcessor::setValue()``. - @RomanSyroeshko @nicoSWD #513
14+
15+
### Bugfixes
16+
- Fixed issue with "Access denied" message while opening ``Sample_07_TemplateCloneRow.docx`` and ``Sample_23_TemplateBlock.docx`` result files on Windows platform. - @RomanSyroeshko @AshSat #532
17+
- Fixed ``PreserveText`` element alignment in footer (see ``Sample_12_HeaderFooter.php``). - @RomanSyroeshko @SSchwaiger #495
18+
19+
20+
21+
0.12.0 (3 January 2015)
22+
-----------------------
623

724
This release added form fields (textinput, checkbox, and dropdown), drawing shapes (arc, curve, line, polyline, rect, oval), and basic 2D chart (pie, doughnut, bar, line, area, scatter, radar) elements along with some new styles. Basic MsDoc reader is introduced.
825

926
### Features
10-
1127
- Element: Ability to add drawing shapes (arc, curve, line, polyline, rect, oval) using new `Shape` element - @ivanlanin #123
1228
- Font: New `scale`, `spacing`, and `kerning` property of font style - @ivanlanin
1329
- Paragraph: Added shading to the paragraph style for full width shading - @lrobert #264
@@ -29,7 +45,6 @@ This release added form fields (textinput, checkbox, and dropdown), drawing shap
2945
- Report style options enumerated when style unknown - @h6w
3046

3147
### Bugfixes
32-
3348
- Fix rare PclZip/realpath/PHP version problem - @andrew-kzoo #261
3449
- `addHTML` encoding and ampersand fixes for PHP 5.3 - @bskrtich #270
3550
- Page breaks on titles and tables - @ivanlanin #274
@@ -43,7 +58,6 @@ This release added form fields (textinput, checkbox, and dropdown), drawing shap
4358
- `<th>` tag is closed with `</td>` tag: - @franzholz #438
4459

4560
### Deprecated
46-
4761
- `Element\Link::getTarget()` replaced by `Element\Link::getSource()`
4862
- `Element\Section::getSettings()` and `Element\Section::setSettings()` replaced by `Element\Section::getStyle()` and `Element\Section::setStyle()`
4963
- `Shared\Drawing` and `Shared\Font` merged into `Shared\Converter`
@@ -52,7 +66,6 @@ This release added form fields (textinput, checkbox, and dropdown), drawing shap
5266
- `PhpWord->loadTemplate($filename)`
5367

5468
### Miscellaneous
55-
5669
- Docs: Add known issue on `README` about requirement for temporary folder to be writable and update `samples/index.php` for this requirement check - @ivanlanin #238
5770
- Docs: Correct elements.rst about Line - @chrissharkman #292
5871
- PclZip: Remove temporary file after used - @andrew-kzoo #265
@@ -63,18 +76,23 @@ This release added form fields (textinput, checkbox, and dropdown), drawing shap
6376
- Renamed `Template` into `TemplateProcessor` - @RomanSyroeshko #216
6477
- Reverted #51. All text escaping must be performed out of the library - @RomanSyroeshko #51
6578

66-
## 0.11.1 - 2 June 2014
79+
80+
81+
0.11.1 (2 June 2014)
82+
--------------------
6783

6884
This is an immediate bugfix release for HTML reader.
6985

7086
- HTML Reader: `<p>` and header tags puts no output - @canyildiz @ivanlanin #257
7187

72-
## 0.11.0 - 1 June 2014
88+
89+
90+
0.11.0 (1 June 2014)
91+
--------------------
7392

7493
This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3. Four new elements were added: TextBox, ListItemRun, Field, and Line. Relative and absolute positioning for images and textboxes were added. Writer classes were refactored into parts, elements, and styles. ODT and RTF features were enhanced. Ability to add elements to PHPWord object via HTML were implemented. RTF and HTML reader were initiated.
7594

7695
### Features
77-
7896
- Image: Ability to define relative and absolute positioning - @basjan #217
7997
- Footer: Conform footer with header by adding firstPage, evenPage and by inheritance - @basjan @ivanlanin #219
8098
- Element: New `TextBox` element - @basjan @ivanlanin #228, #229, #231
@@ -104,23 +122,20 @@ This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3. Four
104122
- RTF Writer: Basic table writing - @ivanlanin #245
105123

106124
### Bugfixes
107-
108125
- Header: All images added to the second header were assigned to the first header - @basjan #222
109126
- Conversion: Fix conversion from cm to pixel, pixel to cm, and pixel to point - @basjan #233, #234
110127
- PageBreak: Page break adds new line in the beginning of the new page - @ivanlanin #150
111128
- Image: `marginLeft` and `marginTop` cannot accept float value - @ivanlanin #248
112129
- Title: Orphan `w:fldChar` caused OpenOffice to crash when opening DOCX - @ivanlanin #236
113130

114131
### Deprecated
115-
116132
- Static classes `Footnotes`, `Endnotes`, and `TOC`
117133
- `Writer\Word2007\Part`: `Numbering::writeNumbering()`, `Settings::writeSettings()`, `WebSettings::writeWebSettings()`, `ContentTypes::writeContentTypes()`, `Styles::writeStyles()`, `Document::writeDocument()` all changed into `write()`
118134
- `Writer\Word2007\Part\DocProps`: Split into `Writer\Word2007\Part\DocPropsCore` and `Writer\Word2007\Part\DocPropsApp`
119135
- `Element\Title::getBookmarkId()` replaced by `Element\Title::getRelationId()`
120136
- `Writer\HTML::writeDocument`: Replaced by `Writer\HTML::getContent`
121137

122138
### Miscellaneous
123-
124139
- License: Change the project license from LGPL 2.1 into LGPL 3.0 - #211
125140
- Word2007 Writer: New `Style\Image` class - @ivanlanin
126141
- Refactor: Replace static classes `Footnotes`, `Endnotes`, and `TOC` with `Collections` - @ivanlanin #206
@@ -136,18 +151,22 @@ This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3. Four
136151
- QA: Improve dan update requirement check in `samples` folder - @ivanlanin
137152

138153

139-
## 0.10.1 - 21 May 2014
154+
155+
0.10.1 (21 May 2014)
156+
--------------------
140157

141158
This is a bugfix release for `php-zip` requirement in Composer.
142159

143160
- Change Composer requirements for php-zip from `require` to `suggest` - @bskrtich #246
144161

145-
## 0.10.0 - 4 May 2014
162+
163+
164+
0.10.0 (4 May 2014)
165+
-------------------
146166

147167
This release marked heavy refactorings on internal code structure with the creation of some abstract classes to reduce code duplication. `Element` subnamespace is introduced in this release to replace `Section`. Word2007 reader capability is greatly enhanced. Endnote is introduced. List numbering is now customizable. Basic HTML and PDF writing support is enabled. Basic ODText reader is introduced.
148168

149169
### Features
150-
151170
- Image: Get image dimensions without EXIF extension - @andrew-kzoo #184
152171
- Table: Add `tblGrid` element for Libre/Open Office table sizing - @gianis6 #183
153172
- Footnote: Ability to insert textbreak in footnote `$footnote->addTextBreak()` - @ivanlanin
@@ -187,12 +206,10 @@ This release marked heavy refactorings on internal code structure with the creat
187206
- Paragraph: Ability to define first line and right indentation - @ivanlanin
188207

189208
### Bugfixes
190-
191209
- Footnote: Footnote content doesn't show footnote reference number - @ivanlanin #170
192210
- Documentation: Error in a function - @theBeerNut #195
193211

194212
### Deprecated
195-
196213
- `createTextRun` replaced by `addTextRun`
197214
- `createFootnote` replaced by `addFootnote`
198215
- `createHeader` replaced by `addHeader`
@@ -208,7 +225,6 @@ This release marked heavy refactorings on internal code structure with the creat
208225
- `Style\Cell::getDefaultBorderColor`
209226

210227
### Miscellaneous
211-
212228
- Documentation: Simplify page level docblock - @ivanlanin #179
213229
- Writer: Refactor writer classes and create a new `Write\AbstractWriter` abstract class - @ivanlanin #160
214230
- General: Refactor folders: `Element` and `Exception` - @ivanlanin #187
@@ -228,27 +244,30 @@ This release marked heavy refactorings on internal code structure with the creat
228244
- Refactor: Split `AbstractContainer` from `AbstractElement` - @ivanlanin
229245
- Refactor: Apply composite pattern for Word2007 reader - @ivanlanin
230246

231-
## 0.9.1 - 27 Mar 2014
247+
248+
249+
0.9.1 (27 Mar 2014)
250+
-------------------
232251

233252
This is a bugfix release for PSR-4 compatibility.
234253

235254
- Fixed PSR-4 composer autoloader - @AntonTyutin
236255

237-
## 0.9.0 - 26 Mar 2014
256+
257+
258+
0.9.0 (26 Mar 2014)
259+
-------------------
238260

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

241263
### Features
242-
243264
- Image: Ability to use remote or GD images using `addImage()` on sections, headers, footer, cells, and textruns - @ivanlanin
244265
- Header: Ability to use remote or GD images using `addWatermark()` - @ivanlanin
245266

246267
### Bugfixes
247-
248268
- Preserve text doesn't render correctly when the text is not the first word, e.g. 'Page {PAGE}' - @ivanlanin
249269

250270
### Miscellaneous
251-
252271
- Move documentation to [Read The Docs](http://phpword.readthedocs.org/en/develop/) - @Progi1984 @ivanlanin #82
253272
- Reorganize and redesign samples folder - @ivanlanin #137
254273
- Use `PhpOffice\PhpWord` namespace for PSR compliance - @RomanSyroeshko @gabrielbull #159, #58
@@ -257,18 +276,23 @@ This release marked the transformation to namespaces (PHP 5.3+).
257276
- Merge Style\TableFull into Style\Table. Style\TableFull is deprecated - @ivanlanin #160
258277
- Merge Section\MemoryImage into Section\Image. Section\Image is deprecated - @ivanlanin #160
259278

260-
## 0.8.1 - 17 Mar 2014
279+
280+
281+
0.8.1 (17 Mar 2014)
282+
-------------------
261283

262284
This is a bugfix release for image detection functionality.
263285

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

266-
## 0.8.0 - 15 Mar 2014
288+
289+
290+
0.8.0 (15 Mar 2014)
291+
-------------------
267292

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

270295
### Features
271-
272296
- Template: Permit to save a template generated as a file (PHPWord_Template::saveAs()) - @RomanSyroeshko #56, #57
273297
- Word2007: Support sections page numbering - @gabrielbull
274298
- Word2007: Added line height methods to mirror the line height settings in Word in the paragraph styling - @gabrielbull
@@ -300,7 +324,6 @@ This release merged a lot of improvements from the community. Unit tests introdu
300324
- TextBreak: Allow font and paragraph style for text break - @ivanlanin #18
301325

302326
### Bugfixes
303-
304327
- Fixed bug with cell styling - @gabrielbull
305328
- Fixed bug list items inside of cells - @gabrielbull
306329
- Adding a value that contains "&" in a template breaks it - @SiebelsTim #51
@@ -309,15 +332,16 @@ This release merged a lot of improvements from the community. Unit tests introdu
309332
- Footnote: Corrupt DOCX reported by MS Word when sections > 1 and not every sections have footnote - @ivanlanin #125
310333

311334
### Miscellaneous
312-
313335
- UnitTests - @Progi1984
314336

315-
## 0.7.0 - 28 Jan 2014
337+
338+
339+
0.7.0 (28 Jan 2014)
340+
-------------------
316341

317342
This is the first release after a long development hiatus in [CodePlex](https://phpword.codeplex.com/). 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](https://packagist.org/packages/phpoffice/phpword) and [Travis](https://travis-ci.org/PHPOffice/PHPWord) were added.
318343

319344
### Features
320-
321345
- Implement RTF Writer - @Progi1984 #1
322346
- Implement ODT Writer - @Progi1984 #2
323347
- Word2007: Add rowspan and colspan to cells - @kaystrobach
@@ -327,13 +351,11 @@ This is the first release after a long development hiatus in [CodePlex](https://
327351
- Added support for image wrapping style - @gabrielbull
328352

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

335358
### Miscellaneous
336-
337359
- Add superscript/subscript styling in Excel2007 Writer - @MarkBaker
338360
- add indentation support to paragraphs - @deds
339361
- Support for Composer - @Progi1984 #27

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.12.0
1+
0.12.1

0 commit comments

Comments
 (0)