50 lines
7.6 KiB
Markdown
50 lines
7.6 KiB
Markdown
# [1.5.0](https://github.com/PHPOffice/PHPWord/tree/1.5.0) (WIP)
|
|
|
|
[Full Changelog](https://github.com/PHPOffice/PHPWord/compare/1.4.0...1.5.0)
|
|
|
|
## Enhancements
|
|
- Add native ODF table-of-contents support to the ODText writer by [@potofcoffee](https://github.com/potofcoffee) fixing [#2917](https://github.com/PHPOffice/PHPWord/issues/2917) in [#2918](https://github.com/PHPOffice/PHPWord/pull/2918)
|
|
- Add native ODF header and footer variants to the ODText writer by [@potofcoffee](https://github.com/potofcoffee) fixing [#2919](https://github.com/PHPOffice/PHPWord/issues/2919) in [#2920](https://github.com/PHPOffice/PHPWord/pull/2920)
|
|
- Add native ODF mappings for REF, XE, and INDEX fields in the ODText writer by [@potofcoffee](https://github.com/potofcoffee) fixing [#2915](https://github.com/PHPOffice/PHPWord/issues/2915) in [#2916](https://github.com/PHPOffice/PHPWord/pull/2916)
|
|
- Added support for image alt text by [@jwoodhead](https://github.com/jwoodhead) in [#2873](https://github.com/PHPOffice/PHPWord/pull/2873)
|
|
- MPDF Writer : Make the mPDF temporary directory configurable via the `tempDir` PDF renderer option, defaulting to the system temporary directory by [@danielwirz](https://github.com/danielwirz) in [#2898](https://github.com/PHPOffice/PHPWord/pull/2898)
|
|
- GD extension is now optional by [@andrew-demb](https://github.com/andrew-demb) fixing [#2789] in [#2902](https://github.com/PHPOffice/PHPWord/pull/2902)
|
|
- Writer ODText: Serialize comments as native ODF annotations by [@potofcoffee](https://github.com/potofcoffee) fixing [#2921](https://github.com/PHPOffice/PHPWord/issues/2921) in [#2922](https://github.com/PHPOffice/PHPWord/pull/2922)
|
|
- Writer ODText: Support native shapes, text boxes, and watermarks by [@potofcoffee](https://github.com/potofcoffee) fixing [#2909](https://github.com/PHPOffice/PHPWord/issues/2909) in [#2910](https://github.com/PHPOffice/PHPWord/pull/2910)
|
|
- Writer ODText: Map SDTs to native ODF form controls by [@potofcoffee](https://github.com/potofcoffee) fixing [#2927](https://github.com/PHPOffice/PHPWord/issues/2927) in [#2928](https://github.com/PHPOffice/PHPWord/pull/2928)
|
|
- Writer ODText: Support native form controls by [@potofcoffee](https://github.com/potofcoffee) fixing [#2925](https://github.com/PHPOffice/PHPWord/issues/2925) in [#2926](https://github.com/PHPOffice/PHPWord/pull/2926)
|
|
- Writer ODText: Support native line drawings by [@potofcoffee](https://github.com/potofcoffee) fixing [#2907](https://github.com/PHPOffice/PHPWord/issues/2907) in [#2908](https://github.com/PHPOffice/PHPWord/pull/2908)
|
|
- Writer ODText: Support native bookmarks by [@potofcoffee](https://github.com/potofcoffee) fixing [#2911](https://github.com/PHPOffice/PHPWord/issues/2911) in [#2912](https://github.com/PHPOffice/PHPWord/pull/2912)
|
|
- Writer ODText: Support native footnotes and endnotes by [@potofcoffee](https://github.com/potofcoffee) fixing [#2913](https://github.com/PHPOffice/PHPWord/issues/2913) in [#2914](https://github.com/PHPOffice/PHPWord/pull/2914)
|
|
- Writer WPS: Basic support of the Microsoft Works word processor documents by [@businessarshgoyal](https://github.com/businessarshgoyal) fixing [#69](https://github.com/PHPOffice/PHPWord/issues/69) in [#2929](https://github.com/PHPOffice/PHPWord/pull/2929)
|
|
- Reader WPS: Read text from the Microsoft Works word processor documents by [@k4it00](https://github.com/k4it00) in [#2935](https://github.com/PHPOffice/PHPWord/pull/2935)
|
|
- Image: Added support for WMF, EMF and EMF+ images, with the optional library [phpoffice/wmf](https://github.com/PHPOffice/WMF) by [@Progi1984](https://github.com/Progi1984) fixing [#1480](https://github.com/PHPOffice/PHPWord/issues/1480), [#1612](https://github.com/PHPOffice/PHPWord/issues/1612) in [#2956](https://github.com/PHPOffice/PHPWord/pull/2956)
|
|
|
|
### Bug fixes
|
|
|
|
- Set writeAttribute return type by [@radarhere](https://github.com/radarhere) fixing [#2204](https://github.com/PHPOffice/PHPWord/issues/2204) in [#2776](https://github.com/PHPOffice/PHPWord/pull/2776)
|
|
- Fix "Using null as an array offset" deprecation in Style::getStyle() on PHP 8.5 by [@pwsdotru](https://github.com/pwsdotru) & [@slayerfx](https://github.com/slayerfx) fixing [#2863](https://github.com/PHPOffice/PHPWord/issues/2863) in [#2892](https://github.com/PHPOffice/PHPWord/pull/2892)
|
|
- Html: Map `<s>`, `<strike>` and `<del>` tags to strikethrough and fix decimal percentage table/cell widths (e.g. `49.85%`) being truncated by [@aswinkumar863](https://github.com/aswinkumar863) in [#2930](https://github.com/PHPOffice/PHPWord/pull/2930)
|
|
- Prevent `htmlspecialchars()` deprecation warnings by defaulting `null` values to empty strings in `AbstractPart` by [@dafydd-rhys](https://github.com/dafydd-rhys) fixing [#2829](https://github.com/PHPOffice/PHPWord/issues/2829) in [#2932](https://github.com/PHPOffice/PHPWord/pull/2932)
|
|
- Writer ODText: Write the alternative text of an image as the description of its frame by [@dkulyk](https://github.com/dkulyk) in [#2940](https://github.com/PHPOffice/PHPWord/pull/2940)
|
|
- Word2007 Writer: Give a heading style its outline level, and a title without a title style a style of its own, so that the title stays a heading; Word2007 Reader: Read a style named Title as the title style by [@dkulyk](https://github.com/dkulyk) in [#2939](https://github.com/PHPOffice/PHPWord/pull/2939)
|
|
- Reader Word2007: Read the alternative text of an image from `wp:docPr` of an inline or floating image, and from `v:shape` of a VML image by [@dkulyk](https://github.com/dkulyk) in [#2946](https://github.com/PHPOffice/PHPWord/pull/2946)
|
|
- Writer ODText: Write a list item added with `addListItem`, which was dropped by [@dkulyk](https://github.com/dkulyk) in [#2945](https://github.com/PHPOffice/PHPWord/pull/2945)
|
|
- Reader Word2007: Read the size, position and wrapping of an image, from VML and DrawingML, instead of giving it the size of its pixels by [@dkulyk](https://github.com/dkulyk) in [#2947](https://github.com/PHPOffice/PHPWord/pull/2947)
|
|
- Writer ODText: Write the language of a text run, which was dropped, take any BCP 47 tag with its script, and use en-US for a document without a language as the Word2007 writer does, instead of fr-FR, zh-CN and hi-IN by [@dkulyk](https://github.com/dkulyk) in [#2944](https://github.com/PHPOffice/PHPWord/pull/2944)
|
|
- Writer Word2007: Point the page number of a table of contents entry at the bookmark of its title (`PAGEREF _Toc…`), and write the text of a title made of a text run by [@dkulyk](https://github.com/dkulyk) in [#2952](https://github.com/PHPOffice/PHPWord/pull/2952)
|
|
- Template Processor: Replace every occurrence of an image variable in `setImageValue` when no limit is given, without adding unused image relations, by [@dualfroz](https://github.com/dualfroz) fixing [#2832](https://github.com/PHPOffice/PHPWord/issues/2832)
|
|
|
|
### Miscellaneous
|
|
|
|
- Update phpstan/phpstan requirement from ^0.12.88 || ^1.0.0 to ^0.12.88 || ^1.0.0 || ^2.0.0 by [@dependabot](https://github.com/dependabot) & [@Progi1984](https://github.com/Progi1984) in [#2736](https://github.com/PHPOffice/PHPWord/pull/2736)
|
|
- Restrict phpunit/phpunit to `< 12` to fix unit tests on PHP 8.3/8.4 by [@slayerfx](https://github.com/slayerfx) fixing [#2842](https://github.com/PHPOffice/PHPWord/issues/2842) in [#2889](https://github.com/PHPOffice/PHPWord/pull/2889)
|
|
- Add PHP 8.5 to the CI matrix and fix chr()/ReflectionMethod::setAccessible() deprecations by [@slayerfx](https://github.com/slayerfx) in [#2892](https://github.com/PHPOffice/PHPWord/pull/2892)
|
|
- Added optional dependency phpoffice/wmf by [@Progi1984](https://github.com/Progi1984) in [#2956](https://github.com/PHPOffice/PHPWord/pull/2956)
|
|
|
|
### Deprecations
|
|
|
|
### BC Breaks
|
|
|
|
### Notes
|