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

IOFactory::load() destroys format - Can't read a document #969

Closed
christopher-francisco opened this issue Dec 23, 2016 · 5 comments
Closed

Comments

@christopher-francisco
Copy link

christopher-francisco commented Dec 23, 2016

Maybe I'm just missing something basic like an extension or something, please help:

Here's a pastebin with the dump of my $ php -i

Step to reproduce

  1. Clone this repository
    1.1 [Optional] Checkout your favorite version, I tried 0.13 and 0.12
  2. $ cd samples
  3. $ php Sample_11_ReadWord2007.php (with php 5.6.27 here)
  4. $ open results/Sample_11_ReadWord2007.docx

Expected Results

The opened document maintains the same formatting (spaces, breaklines, etc) as the original one:
screen shot 2016-12-23 at 08 23 21

Actual Results

screen shot 2016-12-23 at 08 23 28

@ericdsw
Copy link

ericdsw commented Dec 23, 2016

Can confirm, I got the same output by reproducing the steps above.

I'm using PHP 7.0.14, and I opened the document with Word 2016.

screen shot 2016-12-23 at 11 09 30 am

@cait08
Copy link

cait08 commented Jan 4, 2017

I'm having the same issue, PHP 5.4.

@Arthi93
Copy link

Arthi93 commented Jun 16, 2017

Got the same issue trying to save documents as PDF or HTML.

IOFactory::load destroys formatting

@leefuwa
Copy link

leefuwa commented Jul 17, 2017

Excuse me, is this problem settled?

@troosan
Copy link
Contributor

troosan commented Jul 21, 2017

should be, in the dev branch at least.
It will be part of v0.14

@troosan troosan closed this as completed Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants