Skip to content

Conversation

kamilmmach
Copy link
Contributor

@kamilmmach kamilmmach commented Feb 17, 2021

Description

Recently I switched LibreOffice from version 6 to 7 for my docx documents and noticed that a border appeared around all images that I add by using addImage. This fixes the problem by adding an attribute 'stroked' with a value 'f' to the v:shape element in Word2007 Image Element Writer. This resolves #2031.

MS Word:
msword

LibreOffice 7:
libreoffice7

Checklist:

  • I have run composer run-script check --timeout=0 and no errors were reported
  • The new code is covered by unit tests (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes

solves #2031

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0008%) to 95.677% when pulling 68cbca5 on kamilmmach:develop into 1bd7cd6 on PHPOffice:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

PHPWord generated documents have a border around images in LibreOffice Writer
3 participants