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

$phpWord->save ('*. docx', 2007, true) to download the file, File content will be lost! #1789

Closed
Hoylo opened this issue Dec 27, 2019 · 0 comments

Comments

@Hoylo
Copy link

Hoylo commented Dec 27, 2019

Describe the Bug

Files read by the program
Title.docx

Steps to Reproduce

<?php
require __DIR__ . '/vendor/autoload.php';

$phpWord = PhpOffice\PhpWord\IOFactory::load($file)

$phpWord->save('download.docx',  'Word2007',  true);

Expected Behavior

Output original document

Current Behavior

Some text in the document is not displayed

E.g:

image

environment information:

  • PHP Version: 7.1.7
  • PHPWord Version: 0.16
@Hoylo Hoylo changed the title $phpWord = PhpOffice\PhpWord\IOFactory::load($filpe) to load the file, use $phpWord->save ('*. docx', 2007, true) to download the file, File content will be lost! $phpWord->save ('*. docx', 2007, true) to download the file, File content will be lost! Dec 27, 2019
@Hoylo Hoylo closed this as completed Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant