Skip to content

Releases: PHPOffice/PHPWord

1.3.0

01 Sep 07:38
8392134
Compare
Choose a tag to compare

Full Changelog: 1.2.0...1.3.0

Enhancements

Bug fixes

Miscellaneous

New Contributors

1.2.0

28 Dec 08:13
e76b701
Compare
Choose a tag to compare

Enhancements

  • Word2007 Reader/Writer : Added noWrap table cell property by @kernusr in #2359
  • HTML Reader : Support for font-variant: small-caps by @cambraca in #2117
  • Improved TextDirection for styling a cell by @terryzwt in #2429
  • Word2007 Reader : Added option to disable loading images by @aelliott1485 in #2450
  • HTML Writer : Added border-spacing to default styles for table by @kernusr in #2451
  • Word2007 Reader : Support for table cell borders and margins by @kernusr in #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

Miscellaneous

BC Breaks

  • Removed dependency laminas/laminas-escaper

New Contributors

Full Changelog: 1.1.0...1.2.0

1.2.0-beta.1

30 Nov 20:30
e76b701
Compare
Choose a tag to compare
1.2.0-beta.1 Pre-release
Pre-release

Enhancements

  • Word2007 Reader/Writer : Added noWrap table cell property by @kernusr in #2359
  • HTML Reader : Support for font-variant: small-caps by @cambraca in #2117
  • Improved TextDirection for styling a cell by @terryzwt in #2429
  • Word2007 Reader : Added option to disable loading images by @aelliott1485 in #2450
  • HTML Writer : Added border-spacing to default styles for table by @kernusr in #2451
  • Word2007 Reader : Support for table cell borders and margins by @kernusr in #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

Miscellaneous

BC Breaks

  • Removed dependency laminas/laminas-escaper

New Contributors

Full Changelog: 1.1.0...1.2.0-beta.1

1.1.0

30 May 08:01
1.1.0
90a5595
Compare
Choose a tag to compare

Enhancements

  • Introduce deleteRow() method for TemplateProcessor
  • HTML Reader: Add basic support for CSS Style Tag
  • Allow customizing macro syntax in TemplateProcessor
  • Add background color support for textboxes
  • Add softhyphen support to word reader
  • Add support table row height when importing HTML
  • Add support for fractional font sizes
  • Added image quality support, with the maximum quality as default
  • Support for reading nested tables

Bug fixes

  • DOCX reader: Read empty vmerge
  • Fixed setting width of Cell Style

Miscellaneous

  • master is the new default branch

1.0.0

15 Nov 20:27
1.0.0
8521612
Compare
Choose a tag to compare

BREAKING CHANGE

Most deprecated things were dropped. See details in
b9f1151.

Dropped classes:

  • PhpOffice\PhpWord\Template

Dropped constants:

  • PhpOffice\PhpWord\Style\Font::UNDERLINE_DOTHASH
  • PhpOffice\PhpWord\Style\Font::UNDERLINE_DOTHASHHEAVY
  • PhpOffice\PhpWord\Style\Cell::VALIGN_TOP
  • PhpOffice\PhpWord\Style\Cell::VALIGN_CENTER
  • PhpOffice\PhpWord\Style\Cell::VALIGN_BOTTOM
  • PhpOffice\PhpWord\Style\Cell::VALIGN_BOTH
  • PhpOffice\PhpWord\Style\TOC::TABLEADER_DOT
  • PhpOffice\PhpWord\Style\TOC::TABLEADER_UNDERSCORE
  • PhpOffice\PhpWord\Style\TOC::TABLEADER_LINE
  • PhpOffice\PhpWord\Style\TOC::TABLEADER_NONE
  • PhpOffice\PhpWord\Style\Table::WIDTH_AUTO
  • PhpOffice\PhpWord\Style\Table::WIDTH_PERCENT
  • PhpOffice\PhpWord\Style\Table::WIDTH_TWIP
  • PhpOffice\PhpWord\PhpWord::DEFAULT_FONT_NAME
  • PhpOffice\PhpWord\PhpWord::DEFAULT_FONT_SIZE
  • PhpOffice\PhpWord\PhpWord::DEFAULT_FONT_COLOR
  • PhpOffice\PhpWord\PhpWord::DEFAULT_FONT_CONTENT_TYPE

Dropped methods:

  • PhpOffice\PhpWord\Ekement\AbstractContainer::createTextRun()
  • PhpOffice\PhpWord\Ekement\AbstractContainer::createFootnote()
  • PhpOffice\PhpWord\Ekement\Footnote::getReferenceId()
  • PhpOffice\PhpWord\Ekement\Footnote::setReferenceId()
  • PhpOffice\PhpWord\Ekement\Image::getIsWatermark()
  • PhpOffice\PhpWord\Ekement\Image::getIsMemImage()
  • PhpOffice\PhpWord\Ekement\Link::getTarget()
  • PhpOffice\PhpWord\Ekement\Link::getLinkSrc()
  • PhpOffice\PhpWord\Ekement\Link::getLinkName()
  • PhpOffice\PhpWord\Ekement\OLEObject::getObjectId()
  • PhpOffice\PhpWord\Ekement\OLEObject::setObjectId()
  • PhpOffice\PhpWord\Ekement\Section::getFootnotePropoperties()
  • PhpOffice\PhpWord\Ekement\Section::setSettings()
  • PhpOffice\PhpWord\Ekement\Section::getSettings()
  • PhpOffice\PhpWord\Ekement\Section::createHeader()
  • PhpOffice\PhpWord\Ekement\Section::createFooter()
  • PhpOffice\PhpWord\Ekement\Section::getFooter()
  • PhpOffice\PhpWord\Media::addSectionMediaElement()
  • PhpOffice\PhpWord\Media::addSectionLinkElement()
  • PhpOffice\PhpWord\Media::getSectionMediaElements()
  • PhpOffice\PhpWord\Media::countSectionMediaElements()
  • PhpOffice\PhpWord\Media::addHeaderMediaElement()
  • PhpOffice\PhpWord\Media::countHeaderMediaElements()
  • PhpOffice\PhpWord\Media::getHeaderMediaElements()
  • PhpOffice\PhpWord\Media::addFooterMediaElement()
  • PhpOffice\PhpWord\Media::countFooterMediaElements()
  • PhpOffice\PhpWord\Media::getFooterMediaElements()
  • PhpOffice\PhpWord\PhpWord::getProtection()
  • PhpOffice\PhpWord\PhpWord::loadTemplate()
  • PhpOffice\PhpWord\PhpWord::createSection()
  • PhpOffice\PhpWord\PhpWord::getDocumentProperties()
  • PhpOffice\PhpWord\PhpWord::setDocumentProperties()
  • PhpOffice\PhpWord\Reader\AbstractReader::getReadDataOnly()
  • PhpOffice\PhpWord\Settings::getCompatibility()
  • PhpOffice\PhpWord\Style\AbstractStyle::setArrayStyle()
  • PhpOffice\PhpWord\Style\Cell::getDefaultBorderColor()
  • PhpOffice\PhpWord\Style\Font::getBold()
  • PhpOffice\PhpWord\Style\Font::getItalic()
  • PhpOffice\PhpWord\Style\Font::getSuperScript()
  • PhpOffice\PhpWord\Style\Font::getSubScript()
  • PhpOffice\PhpWord\Style\Font::getStrikethrough()
  • PhpOffice\PhpWord\Style\Font::getParagraphStyle()
  • PhpOffice\PhpWord\Style\Frame::getAlign()
  • PhpOffice\PhpWord\Style\Frame::setAlign()
  • PhpOffice\PhpWord\Style\NumberingLevel::getAlign()
  • PhpOffice\PhpWord\Style\NumberingLevel::setAlign()
  • PhpOffice\PhpWord\Style\Paragraph::getAlign()
  • PhpOffice\PhpWord\Style\Paragraph::setAlign()
  • PhpOffice\PhpWord\Style\Paragraph::getWidowControl()
  • PhpOffice\PhpWord\Style\Paragraph::getKeepNext()
  • PhpOffice\PhpWord\Style\Paragraph::getKeepLines()
  • PhpOffice\PhpWord\Style\Paragraph::getPageBreakBefore()
  • PhpOffice\PhpWord\Style\Row::getTblHeader()
  • PhpOffice\PhpWord\Style\Row::isTblHeader()
  • PhpOffice\PhpWord\Style\Row::getCantSplit()
  • PhpOffice\PhpWord\Style\Row::getExactHeight()
  • PhpOffice\PhpWord\Style\Spacing::getRule()
  • PhpOffice\PhpWord\Style\Spacing::setRule()
  • PhpOffice\PhpWord\Style\Table::getAlign()
  • PhpOffice\PhpWord\Style\Table::setAlign()
  • PhpOffice\PhpWord\Writer\AbstractWriter::getUseDiskCaching()
  • PhpOffice\PhpWord\Writer\HTML::writeDocument()

Bug fixes

  • Multiple PHP 8.1 fixes
  • loadConfig returns config that was actually applied
  • HTML Reader : Override inline style on HTML attribute for table
  • HTML Reader : Use border attribute for tables
  • HTML Reader : Style page-break-after in paragraph
  • HTML Reader : Heading in Text Run is not allowed

Miscellaneous

  • Drop support for PHP 7.0 and older

0.18.3

17 Feb 15:40
0.18.3
be0190c
Compare
Choose a tag to compare

Bug fixes

  • PHP 8.1 compatibility

0.18.2

04 Jun 21:22
Compare
Choose a tag to compare

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

0.18.1

08 Mar 01:08
06b90e3
Compare
Choose a tag to compare

Bug fixes

  • Fix BC break in #1946. This package does not replace laminas/laminas-zendframework-bridge #2032 (mussbach)

0.18.0

12 Feb 21:35
Compare
Choose a tag to compare

Enhancements

Bug fixes

Miscellaneous

v0.17.0

01 Oct 21:32
Compare
Choose a tag to compare

Added

Fixed

Miscellaneous

  • Use embedded http server to test loading of remote images @troosan #1544
  • Change private to protected to be able extending class Html @SpinyMan #1646
  • Fix apt-get crash in Travis CI for PHP 5.3 @mdupont #1707