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

Inconsistent formatting #563

Open
kojow7 opened this issue Jun 27, 2015 · 2 comments
Open

Inconsistent formatting #563

kojow7 opened this issue Jun 27, 2015 · 2 comments

Comments

@kojow7
Copy link

kojow7 commented Jun 27, 2015

I just installed PHPWord and am trying out the sample code under the "Getting Started" section of https://github.com/PHPOffice/PHPWord . I am getting inconsistent formatting between ODT, DOCX, and HTML.

In ODT I get the color change on the third line of text, but I get a page break between the 2nd and 3rd paragraphs. I do not see a page break in the code.

In DOCX I do not get a color change on the third line of text. All four paragraphs are on the same page.

In HTML, No formatting is applied to the paragraphs. Looking in the source code I can see styles defined but there are no classes specified in the paragraph tags. Also, there seems to be a lot of extra CSS code that is not needed such as empty classes T1 and P1, table elements, a, and hr elements.

Just to be clear, I am only able to use OpenOffice 3.2 and am reading in the docx through there. I can open up standard docx files just fine so I am assuming there is some inconsistency as to how PHPWord is creating its files.


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

@kojow7
Copy link
Author

kojow7 commented Jul 3, 2015

Also, I've now tried using the addImage option and the docx file will not open with OpenOffice. Instead it says: "Due to an unexpected error, OpenOffice.org crashed...."

@kojow7
Copy link
Author

kojow7 commented Jul 4, 2015

I was just able to check the file out with Apache OpenOffice 4.1. The image still does not display, but at least it does not crash.

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

No branches or pull requests

2 participants