Skip to content

1.2.0

Full Changelog

Enhancements

  • Word2007 Reader/Writer : Added noWrap table cell property by @kernusr in GH-2359
  • HTML Reader : Support for font-variant: small-caps by @cambraca in GH-2117
  • Improved TextDirection for styling a cell by @terryzwt in GH-2429
  • Word2007 Reader : Added option to disable loading images by @aelliott1485 in GH-2450
  • HTML Writer : Added border-spacing to default styles for table by @kernusr in GH-2451
  • Word2007 Reader : Support for table cell borders and margins by @kernusr in GH-2454
  • PDF Writer : Add config for defining the default font by @MikeMaldini in #2262 & #2468
  • Word2007 Reader : Added support for Comments by @shaedrich in #2161 & #2469
  • Word2007 Reader/Writer: Permit book-fold printing by @potofcoffee in #2225 & #2470
  • Word2007 Writer : Add PageNumber to TOC by @jet-desk in #1652 & #2471
  • Word2007 Reader/Writer + ODText Reader/Writer : Add Element Formula in by @Progi1984 in #2477
  • Add Support for Various Missing Features in HTML Writer by @oleibman in #2475
  • Fixed addHTML (text-align:right in html is not handled correctly) in #2467
  • HTML Writer : Added ability to specify generic fallback font
  • HTML Writer : Added ability to specify handling of whitespace
  • HTML Writer : Added support for Table Border style, color, and size
  • HTML Writer : Added support for empty paragraphs (Word writer permits, browsers generally suppress)
  • HTML Writer : Paragraph style should support indentation, line-height, page-break-before
  • HTML Writer : Removed margin-top/bottom when spacing is null in Paragraph style
  • HTML Writer : Added default paragraph style to all paragraphs, as well as class Normal
  • HTML Writer : Use css @page and page declarations for sections
  • HTML Writer : Wrap sections in div, with page break before each (except first)
  • PDF Writer : Added support for PageBreak
  • PDF Writer : Added callback for modifying the HTML
  • Added Support for Language, both for document overall and individual text elements
  • Template : Set a checkbox by @nxtpge in #2509
  • ODText / RTF / Word2007 Writer : Add field FILENAME by @milkyway-git in #2510
  • ODText Reader : Improve Section Reader by @oleibman in #2507

Bug fixes

  • Fixed wrong mimetype for docx files by @gamerlv in GH-2416
  • Word2007 Reader : Read hyperlingks in headings by @hannesdorn in GH-2433
  • PclZip : strtr using empty string by @spl1nes in GH-2432
  • Fixed PHP 8.2 deprecated about Allow access to an undefined property by @DAdq26 in GH-2440
  • Template Processor : Fixed choose dimention for Float Value by @gdevilbat in GH-2449
  • HTML Parser : Fix image parsing from url without extension by @JokubasR in GH-2459
  • Word2007 Reader : Fixed reading of Office365 DocX file by @filippotoso & @lfglopes in #2506
  • Word2007 Reader : Check for null on $fontDefaultStyle by @spatialfree in #2513

Miscellaneous

BC Breaks

  • Removed dependency laminas/laminas-escaper
  • Unintended Break TemplateProcessor Does Not Persist File After Destruct. #2539 To be fixed by [#2545](https://github.com/PHPOffice/PHPWord/pull/2545