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

bug: if Word have Justify Format when i used $phpWord = \PhpOffice\PhpWord\IOFactory::load('test.docx'); #529

Open
xjdata opened this issue May 2, 2015 · 4 comments

Comments

@xjdata
Copy link

xjdata commented May 2, 2015

Thank you that we can provide such a good open source project, I encountered a little problem in the use of the process, please help. THX

bug: if Word have Justify Format when i used
$phpWord = \PhpOffice\PhpWord\IOFactory::load('test.docx');

( ! ) Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Invalid style value: distribute Options:left,right,center,both,justify' in D:\xampp\web\phpword\src\PhpWord\Style\AbstractStyle.php on line 287
( ! ) InvalidArgumentException: Invalid style value: distribute Options:left,right,center,both,justify in D:\xampp\web\phpword\src\PhpWord\Style\AbstractStyle.php on line 287

qq 20150503033841


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@AntonioMalatestaISA
Copy link
Contributor

Same problem +1

@AntonioMalatestaISA
Copy link
Contributor

The problem is in class PhpOffice\PhpWord\Style\Alignment. In this class is not present align_start.
This value is present in my xml style

@christopher-francisco
Copy link

@AntonioMalatesta by any chance when you load it and save, does the format get destroyed?

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 18, 2022
@Progi1984 Progi1984 removed the Stale label Nov 18, 2022
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

4 participants