Bug 168260 - Chinese .docx shows 1 page in Writer and 2 pages in Word/WPS with Microsoft YaHei font
Summary: Chinese .docx shows 1 page in Writer and 2 pages in Word/WPS with Microsoft Y...
Status: RESOLVED DUPLICATE of bug 129808
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CJK
  Show dependency treegraph
 
Reported: 2025-09-03 02:39 UTC by suyangzuo
Modified: 2025-10-07 19:36 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
The .docx file. (8.34 KB, application/wps-office.docx)
2025-09-03 02:40 UTC, suyangzuo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description suyangzuo 2025-09-03 02:39:59 UTC
Description:
I have a .docx file, when I open it by Writer, it shows just 1 page.
But when I open it by Word or WPS, it shows 2 page.
I love LibreOffice but this issue prevent me to use it, because I have to be consistent with the rest of my workplace(they all use Word or WPS).

Steps to Reproduce:
1. open .docx file
2. show pages

Actual Results:
Writer showed 2 pages (but Word and WPS showed only 1)

Expected Results:
Writer get same result as Word/WPS when open .doc or .docx.


Reproducible: Always


User Profile Reset: No

Additional Info:
.docx file and result screeshots can be dwonloaded by:
https://www.dropbox.com/scl/fo/xq9xw5dnzk6al20wqhal1/ALu9knQMLTh_N60srhtnd6U?rlkey=hvr9j5zc6cxl55wfidrcgappl&st=xq0if90u&dl=0
Comment 1 suyangzuo 2025-09-03 02:40:44 UTC
Created attachment 202668 [details]
The .docx file.
Comment 2 m_a_riosv 2025-09-03 23:45:54 UTC
I don't have the Font available, maybe Calc doesn't make the same substitution as Word.
Comment 3 lemonche 2025-10-03 15:24:20 UTC
I reproduced the issue, and went step ahead to compare default page style options on boith programs (Writer, Pages for Mac) and noticed that Writer has different default margins metric than Pages or Word.
Writer defauls are 0.79 inches for all margins = 2.0066 cm
Pages defaults are 2 cm for all margins 

Could this small difference be the root cause of the page number diffs?
Comment 4 m_a_riosv 2025-10-03 21:07:51 UTC
(In reply to lemonche from comment #3)
> I reproduced the issue, and went step ahead to compare default page style
> options on boith programs (Writer, Pages for Mac) and noticed that Writer
> has different default margins metric than Pages or Word.
> Writer defauls are 0.79 inches for all margins = 2.0066 cm
> Pages defaults are 2 cm for all margins 
> 
> Could this small difference be the root cause of the page number diffs?

Test it changing the margins in Writer, first change
Menu>Tools>Options>LibreOffice Writer>General>Measurement units to cm.
Comment 5 Jonathan Clark 2025-10-07 19:36:13 UTC
After installing Microsoft YaHei, the output looks identical to the Microsoft Word/WPS screenshots with the following version:

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0b4875b85b6c09f328aac3cc65b848a51190b209
CPU threads: 32; OS: Linux 6.14; UI render: default; VCL: kf6 (cairo+wayland)
Locale: en-CA (en_CA.UTF-8); UI: en-US
Calc: threaded

This bug is a duplicate of bug 129808. The fix will be included in LibreOffice 26.2.

*** This bug has been marked as a duplicate of bug 129808 ***