Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image border in Word2007 Writer for LibreOffice 7 #2021

Merged
merged 1 commit into from
Mar 13, 2021

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