v0.13.0
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\Jcsimple type. - @RomanSyroeshko - Introduced the
\PhpOffice\PhpWord\SimpleType\JcTablesimple 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.inior\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.phpis not found. - @RomanSyroeshko #371 - Renamed the
alignoption ofNumberingLevel,Frame,Table, andParagraphstyles intoalignment. - @RomanSyroeshko - Improved performance of
TemplateProcessor::setValue(). - @kazitanvirahsan #614, #617
Deprecated
getAlignandsetAlignmethods ofNumberingLevel,Frame,Table, andParagraphstyles.
Use the correspondentgetAlignmentandsetAlignmentmethods instead. - @RomanSyroeshkoleft,right, andjustifyalignment options for paragraphs (now are mapped toJc::START,Jc::END, andJc::BOTH). - @RomanSyroeshkoleft,right, andjustifyalignment options for tables (now are mapped toJc::START,Jc::END, andJc::CENTER). - @RomanSyroeshkoTCPDFdue to its limited HTML support. UseDomPDForMPDFwriter 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\Drawingreplaced by\PhpOffice\Common\Drawing. - @Progi1984 #658\PhpOffice\PhpWord\Shared\Font. - @Progi1984 #658\PhpOffice\PhpWord\Shared\Stringreplaced by\PhpOffice\Common\Text. - @Progi1984 @RomanSyroeshko #658\PhpOffice\PhpWord\Shared\XMLReaderreplaced by\PhpOffice\Common\XMLReader. - @Progi1984 #658\PhpOffice\PhpWord\Shared\XMLWriterreplaced by\PhpOffice\Common\XMLWriter. - @Progi1984 @RomanSyroeshko #658AbstractContainer::addMemoryImage(). UseAbstractContainer::addImage()instead.