All Versions
20
Latest Version
Avg Release Cycle
155 days
Latest Release
1028 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v0.18.3 Changes
February 17, 2022 -
v0.18.2 Changes
June 04, 2021๐ Bug fixes
- when adding image to relationship first check that the generated RID is actually unique #2063 (tpv-ebben)
- โก๏ธ Update chart, don't write 'c:overlap' if grouping is 'clustered' #2052 (dfsd534)
- โก๏ธ Update Html parser to accept line-height:normal #2041 (joelgo)
- ๐ Fix image border in Word2007 Writer for LibreOffice 7 #2021 (kamilmmach)
Miscellaneous
-
v0.18.1 Changes
March 08, 2021๐ Bug fixes
-
v0.18.0 Changes
February 12, 2021โจ Enhancements
- โ Add support for charts in template processor #2012 (dbarzin)
- โ add/setting page element border style. #1986 (emnabs)
- ๐ allow to use customized pdf library #1983 (SailorMax)
- ๐ feat: Update addHtml to handle style inheritance #1965 (Julien1138)
- โ Add parsing of Shape node values #1924 (sven-ahrens)
- ๐ Allow to redefine TCPDF object #1907 (SailorMax)
- โจ Enhancements to addHTML parser #1902 (lubosdz)
- ๐ง Make Default Paper Configurable #1851 (oleibman)
- Implement various missing features for the ODT writer #1796 (oleibman)
- โ Added support for "cloudConvert" images #1794 (ErnestStaug)
- โ Add support for several features for the RTF writer #1775 (oleibman)
- โ Add font style for Field elements #1774 (oleibman)
- โ Add support for ListItemRun in HTML writer #1766 (stefan-91)
- ๐ Improvements in RTF writer #1755 (oleibman)
- ๐ Allow a closure to be passed with image replacement tags #1716 (mbardelmeijer)
- โ Add Option for Dynamic Chart Legend Position #1699 (Stephan212)
- โ Add parsing of HTML checkbox input field #1832 (Matze2010)
๐ Bug fixes
- ๐ Fix image stroke in libreoffice 7.x #1992 (Adizbek)
- ๐ Fix deprecated warning for non-hexadecimal number #1988 (Ciki)
- ๐ Fix limit not taken into account when adding image in template #1967 (jsochor)
- โ Add null check when setComplexValue is not found #1936 (YannikFirre)
- Some document have non-standard locale code #1824 (ErnestStaug)
- ๐ Fixes PHPDoc @param and @return types for several Converter methods #1818 (caugner)
- โก๏ธ Update the regexp to avoid catastrophic backtracking #1809 (juzser)
- ๐ Fix PHPUnit tests on develop branch #1771 (mdupont)
- ๐ฏ TemplateProcessor cloneBlock wrongly clones images #1763 (alarai)
Miscellaneous
- Compatibility with PHP 7.4, PHP 8.0 and migrate to Laminas Escaper #1946 (liborm85)
- โ Remove legacy PHPOffice/Common package, fix PHP 8.0 compatibility #1996 (liborm85)
- ๐ Improve Word2007 Test Coverage #1858 (oleibman)
- ๐ Fix typo in docs. Update templates-processing.rst #1952 (mnvx)
- ๐ Fix documentation and method name for FootnoteProperties #1776 (mdupont)
- ๐ fix: documentation about paragraph indentation #1764 (mdupont)
- โก๏ธ Update templates-processing.rst #1745 (igronus)
- Unused variables $rows, $cols in sample #1877 (ThanasisMpalatsoukas)
- โ Add unit test for NumberingStyle #1744 (Manunchik)
- โ Add unit test for PhpWord Settings #1743 (Manunchik)
- โ Add unit test for Media elements #1742 (Manunchik)
- โก๏ธ Update templates processing docs #1729 (hcdias)
-
v0.17.0 Changes
October 01, 2019โ Added
- โ Add methods setValuesFromArray and cloneRowFromArray to the TemplateProcessor @geraldb-nicat #670
- Set complex type in template @troosan #1565
- ๐ implement support for section vAlign @troosan #1569
- ๐ ParseStyle for border-color @Gllrm0 #1551
- Html writer auto invert text color @SailorMax #1387
- โ Add RightToLeft table presentation. @troosan #1550
- โ Add support for page vertical alignment. @troosan #672 #1569
- โ Adding setNumId method for ListItem style @eweso #1329
- โ Add support for basic fields in RTF writer. @Samuel-BF #1717
๐ Fixed
- ๐ Fix HTML border-color parsing. @troosan #1551 #1570
- Language::validateLocale should pass with locale 'zxx'. @efpapado #1558
- can't align center vertically with the text @ter987 #672
- ๐ fix parsing of border-color and add test @troosan #1570
- TrackChange doesn't handle all return types of \DateTime::createFromFormat(...) @superhaggis #1584
- ๐ To support PreserveText inside sub container @bhattnishant #1637
- No nested w:pPr elements in ListItemRun. @waltertamboer #1628
- Ensure that entity_loader disable variable is re-set back to the original setting @seamuslee001 #1585
Miscellaneous
-
v0.16.0 Changes
December 30, 2018โ Added
- โ Add getVariableCount method in TemplateProcessor. @nicoder #1272
- โ Add setting Chart Title and Legend visibility @Tom-Magill #1433
- โ Add ability to pass a Style object in Section constructor @ndench #1416
- โ Add support for hidden text @Alexmg86 #1527
- โ Add support for setting images in TemplateProcessor @SailorMax #1170
- โ Add "Plain Text" type to SDT (Structured Document Tags) @morrisdj #1541
- โ Added possibility to index variables inside cloned block in TemplateProcessor @JPBetley #817
- โ Added possibility to replace variables inside cloned block with values in TemplateProcessor @DIDoS #1392
๐ Fixed
- ๐ Fix regex in
cloneBlock
function @nicoder #1269 - HTML Title Writer loses text when Title contains a TextRun instead a string. @begnini #1436
- ๐ Fix regex in fixBrokenMacros, make it less greedy @MuriloSo @brainwood @yurii-sio2 #1502 #1345
- ๐ 240 twips are being added to line spacing, should not happen when using lineRule fixed @troosan #1509 #1505
- โ Adding table layout to the generated HTML @aarangara #1441
- ๐ Fix loading of Sharepoint document @Garrcomm #1498
- RTF writer: Round getPageSizeW and getPageSizeH to avoid decimals @Patrick64 #1493
- ๐ Fix parsing of Office 365 documents @Timanx #1485
- For RTF writers, sizes should should never have decimals @Samuel-BF #1536
- ๐ Style Name Parsing fails if document generated by a non-english word version @begnini #1434
Miscelaneous
- Get rid of duplicated code in TemplateProcessor @abcdmitry #1161
-
v0.15.0 Changes
July 14, 2018โ Added
- ๐ Parsing of
align
HTML attribute - @troosan #1231 - ๐ Parse formatting inside HTML lists - @troosan @samimussbach #1239 #945 #1215 #508
- ๐ Parsing of CSS
direction
instruction, HTMLlang
attribute, formatting inside table cell - @troosan #1273 #1252 #1254 - โ Add support for Track changes @cip @troosan #354 #1262
- โ Add support for fixed Table Layout @aoloe @ekopach @troosan #841 #1276
- โ Add support for Cell Spacing @dox07 @troosan #1040
- โ Add parsing of formatting inside lists @atomicalnet @troosan #594
- โ Added support for Vertically Raised or Lowered Text (w:position) @anrikun @troosan #640
- โ Add support for MACROBUTTON field @phryneas @troosan #1021
- โ Add support for Hyphenation @Trainmaster #1282 (Document:
autoHyphenation
,consecutiveHyphenLimit
,hyphenationZone
,doNotHyphenateCaps
, Paragraph:suppressAutoHyphens
) - โ Added support for Floating Table Positioning (tblpPr) @anrikun #639
- โ Added support for Image text wrapping distance @troosan #1310
- โ Added parsing of CSS line-height and text-indent in HTML reader @troosan #1316
- โ Added the ability to enable gridlines and axislabels on charts @FrankMeyer #576
- โ Add support for table indent (tblInd) @Trainmaster #1343
- โ Added parsing of internal links in HTML reader @lalop #1336
- Several improvements to charts @JAEK-S #1332
- ๐ Support reading of w:drawing for documents produced by word 2011+ @gthomas2 #464 #1324
- โ Add parsing of html image in base64 format @jgpATs2w #1382
- โ Added Support for Indentation & Tabs on RTF Writer. @smaug1985 #1405
- ๐ Allows decimal numbers in HTML line-height style @jgpATs2w #1413
๐ Fixed
- ๐ Fix reading of docx default style - @troosan #1238
- ๐ Fix the size unit of when parsing html images - @troosan #1254
- ๐ Fixed HTML parsing of nested lists - @troosan #1265
- ๐พ Save PNG alpha information when using remote images. @samsullivan #779
- ๐ Fix parsing of
<w:br/>
tag. @troosan #1274 - Bookmark are not writton as internal link in html writer @troosan #1263
- It should be possible to add a Footnote in a ListItemRun @troosan #1289 #1287
- ๐ Fix colspan and rowspan for tables in HTML Writer @mattbolt #1292
- ๐ Fix parsing of Heading and Title formating @troosan @gthomas2 #465
- ๐ Fix Dateformat typo, fix hours casing, add Month-Day-Year formats @ComputerTinker #591
- ๐ Fix missing column width in ODText writer @potofcoffee #413
- ๐ Disable entity loader before parsing XML to avoid XXE injection @Tom4t0 #1427
๐ Changed
- โ Remove zend-stdlib dependency @Trainmaster #1284
- ๐
The default unit for
\PhpOffice\PhpWord\Style\Image
changed frompx
topt
.
Miscelaneous
- ๐ Parsing of
-
v0.14.0 Changes
December 29, 2017๐ This release fixes several bugs and adds some new features.
โ PHP 7.0 and 7.1 are now supported without warnings.โ Added
- Possibility to control the footnote numbering - @troosan #1068
- Image creation from string - @troosan #937
- Introduced the
\PhpOffice\PhpWord\SimpleType\NumberFormat
simple type. - @troosan - ๐ Support for ContextualSpacing - @postHawk #1088
- Possiblity to hide spelling and/or grammatical errors - @troosan #542
- 0๏ธโฃ Possiblity to set default document language as well as changing the language for each text element - @troosan #1108
- ๐ Support for Comments - @troosan #1067
- ๐ Support for paragraph textAlignment - @troosan #1165
- โ Add support for HTML underline tag in addHtml - @zNightFalLz #1186
- ๐ Allow to change cell width unit - @guillaume-ro-fr #986
- ๐ Allow to change the line height rule @troosan
- Implement PageBreak for odt writer @cookiekiller #863 #824
- ๐ Allow to force an update of all fields on opening a document - @troosan #951
- ๐ Allow adding a CheckBox in a TextRun - @irond #727
- โ Add support for HTML img tag - @srggroup #934
- โ Add support for password protection for docx - @mariahaubner #1019
๐ Fixed
- Loosen dependency to Zend
- ๐จ Images are not being printed when generating PDF - @hubertinio #1074 #431
- ๐ Fixed some PHP 7 warnings - @ likeuntomurphy #927
- ๐ Fixed Word 97 reader - @alsofronie @Benpxpx @mario-rivera #912 #920 #892
- ๐ Fixed image loading over https - @troosan #988
- Impossibility to set different even and odd page headers - @troosan #981
- ๐ Fixed Word2007 reader where unnecessary paragraphs were being created - @donghaobo #1043 #620
- ๐ Fixed Word2007 reader where margins were not being read correctly - @slowprog #885 #1008
- Impossible to add element PreserveText in Section - @rvanlaak #452
- โ Added missing options for numbering format - @troosan #1041
- ๐ Fixed impossibility to set a different footer for first page - @ctrlaltca #1116, @aoloe #875
- ๐ Fixed styles not being applied by HTML writer, better pdf output - @Sarke #1047 #500 #1139
- ๐ Fixed read docx error when document contains image from remote url - @FBnil #1173 #1176
- ๐ Padded the $args array to remove error - @kaigoh #1150, @reformed #870
- ๐ Fix incorrect image size between windows and mac - @bskrtich #874
- ๐ Fix adding HTML table to document - @mogilvie @arivanbastos #324
- ๐ Fix parsing on/off values (w:val="true|false|1|0|on|off") - @troosan #1221 #1219
- ๐ Fix error on Empty Dropdown Entry - @ComputerTinker #592
๐ Deprecated
- PhpWord->getProtection(), get it from the settings instead PhpWord->getSettings()->getDocumentProtection();
-
v0.13.0 Changes
July 31, 2016๐ This release brings several improvements in
TemplateProcessor
, automatic output escaping feature for OOXML, ODF, HTML, and RTF (turned off, by default). It also introduces constants for horizontal alignment options, and resolves some issues with PHP 7. Manual installation feature has been dropped since the release. Please, use Composer to install PHPWord.โ Added
- Introduced the
\PhpOffice\PhpWord\SimpleType\Jc
simple type. - @RomanSyroeshko - Introduced the
\PhpOffice\PhpWord\SimpleType\JcTable
simple type. - @RomanSyroeshko - ๐ Introduced writer for the "Paragraph Alignment" element (see
\PhpOffice\PhpWord\Writer\Word2007\Element\ParagraphAlignment
). - @RomanSyroeshko - ๐ Introduced writer for the "Table Alignment" element (see
\PhpOffice\PhpWord\Writer\Word2007\Element\TableAlignment
). - @RomanSyroeshko - ๐ Supported indexed arrays in arguments of
TemplateProcessor::setValue()
. - @RomanSyroeshko #618 - Introduced automatic output escaping for OOXML, ODF, HTML, and RTF. To turn the feature on use
phpword.ini
or\PhpOffice\PhpWord\Settings
. - @RomanSyroeshko #483 - ๐ Supported processing of headers and footers in
TemplateProcessor::applyXslStyleSheet()
. - @RomanSyroeshko #335
๐ Changed
- ๐ Improved error message for the case when
autoload.php
is not found. - @RomanSyroeshko #371 - ๐
Renamed the
align
option ofNumberingLevel
,Frame
,Table
, andParagraph
styles intoalignment
. - @RomanSyroeshko - ๐ Improved performance of
TemplateProcessor::setValue()
. - @kazitanvirahsan #614, #617
๐ Deprecated
- ๐
getAlign
andsetAlign
methods ofNumberingLevel
,Frame
,Table
, andParagraph
styles.
๐ Use the correspondentgetAlignment
andsetAlignment
methods instead. - @RomanSyroeshko left
,right
, andjustify
alignment options for paragraphs (now are mapped toJc::START
,Jc::END
, andJc::BOTH
). - @RomanSyroeshkoleft
,right
, andjustify
alignment options for tables (now are mapped toJc::START
,Jc::END
, andJc::CENTER
). - @RomanSyroeshko- ๐
TCPDF
due to its limited HTML support. UseDomPDF
orMPDF
writer instead. - @RomanSyroeshko #399
โ Removed
- ๐
\PhpOffice\PhpWord\Style\Alignment
. Style properties, which previously stored instances of this class, now deal with strings.
In each case set of available string values is defined by the correspondent simple type. - @RomanSyroeshko - ๐ Manual installation support. Since the release we have dependencies on third party libraries,
so installation via ZIP-archive download is not an option anymore. To install PHPWord use Composer.
๐ We also removed\PhpOffice\PhpWord\Autoloader
, because the latter change made it completely useless.
๐ Autoloaders provided by Composer are in use now (seebootstrap.php
). - @RomanSyroeshko \PhpOffice\PhpWord\Shared\Drawing
replaced by\PhpOffice\Common\Drawing
. - @Progi1984 #658\PhpOffice\PhpWord\Shared\Font
. - @Progi1984 #658\PhpOffice\PhpWord\Shared\String
replaced by\PhpOffice\Common\Text
. - @Progi1984 @RomanSyroeshko #658\PhpOffice\PhpWord\Shared\XMLReader
replaced by\PhpOffice\Common\XMLReader
. - @Progi1984 #658\PhpOffice\PhpWord\Shared\XMLWriter
replaced by\PhpOffice\Common\XMLWriter
. - @Progi1984 @RomanSyroeshko #658AbstractContainer::addMemoryImage()
. UseAbstractContainer::addImage()
instead.
๐ Fixed
- Introduced the
-
v0.12.1 Changes
August 30, 2015๐ Maintenance release. This release is focused primarily on
TemplateProcessor
.๐ Changes
- ๐ Changed visibility of all private properties and methods of
TemplateProcessor
toprotected
. - @RomanSyroeshko #498 - ๐ Improved performance of
TemplateProcessor::setValue()
. - @RomanSyroeshko @nicoSWD #513
๐ Bugfixes
- Fixed issue with "Access denied" message while opening
Sample_07_TemplateCloneRow.docx
andSample_23_TemplateBlock.docx
result files on Windows platform. - @RomanSyroeshko @AshSat #532 - Fixed
PreserveText
element alignment in footer (seeSample_12_HeaderFooter.php
). - @RomanSyroeshko @SSchwaiger #495
- ๐ Changed visibility of all private properties and methods of