How to retain the page of original docx document when opened in Libreoffice

In my Libreoffice, I opened a docx document that was created in Microsoft office. But the page setup of the original document was not retained. I checked the page size, it was A4 (exactly as that in Microsoft Office). The margin sizes were although not the same. I thought maybe making them same would make my document layout to be same as that in Microsoft Office but it only made it worse.

So, I was wondering if someone could help me out and tell me how to get the same document layout as you would in Microsoft Word?

Lossless conversion is only available if using Microsoft Word itself. Writer converts every Word document into own source code. If converting back into Word file it is altered again.

I have never had such a problem. Whatever other problems may be, page size and margins have always been preserved when opening DOC/DOCX files in Writer. Can you share a sample file?

I assume that the comparison occurs on the same computer. Otherwise check the same fonts are available on both. Don’t rely on what you see on screen. Look at the font menu in the toolbar. If font name is italics, the font does not exist on the computer and is substituted.

There are many design differences between ODF (Writer) and .doc(x) formats.

One of these is the definition of the page printable area.

  • In Word, margins define the “discourse” area and page decoration (header and footer) is taken from the margins leaving the discourse area unchanged.

  • in Writer, margins define an absolutely no-print area. The inter-margin area is shared between discourse, footer and header.

The correspondence between these paradigms is a matter of simple arithmetic. This is why the page setup reports different settings in Writer than in Word (or vice versa).

Another cause of discrepancy is manual formatting. Word has many shortcomings in its abstract formatting model which ends up in user adding manually directives for bold, italics, … These unnamed additions are a nightmare for the conversion process.

Word only manages paragraph styling where Writer offers paragraph, character, page, frame and list styling resulting in more robust (and paradoxically easier for the user once the notion is understood) formatting.

If, in addition, you don’t use the styling services in Word (aka. the stylesheet) and vertical space your text with empty paragraphs instead of tuning the spacing properties of paragraph styles, you quite systematically lose your page synchronisation.

Also, table “geometry” are not well converted between both suites.

To summarize, conversion gives acceptable results if the original document is consistently styled, is relatively simple (few tables and absolutely no tables nested inside tables) and does not use advanced features. This is the case for 99% of common documents but for the first argument (styling).

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!