Why does opening .odt on different computer (both with Debian OS) result in more pages?

I have two thinkpad laptops, both running the same version of Debian 12 OS. I created a Writer document using Page Style and Paragraph Style throughout on Laptop-1. On Laptop-1, the page count is 292 pages. Opening the same document on Laptop-2 results in 320 pages. I have diligently looked at every setting in Writer and the settings are identical between them. Both are using same fonts, spacing, etc.

The problem is resulting from Laptop-1 showing 3 more row/lines than Laptop-2 (e.g., on first page of writing, Laptop-1 shows 3 more rows of writing. But the margins, font, spacing, indents are exactly the same. The page styles and paragraph styles are all showing accurately and reports same settings.

What’s going on?.

Writer reports the same fonts because the styles require so, but are the fonts installed on both computers? If you chose other than Liberation or Free families, you may have forgotten to add the “fancy” font to one of the computers.

Yes, all fonts were confirmed installed.

I purposely added exact same fonts to /home/$USER/fonts on both laptops. What I didn’t do was make sure fonts were processed by OS (but visibly the fonts look correct). I will check that now and report back if this fixes the problem.

EDIT: all fonts showing as installed/processed by OS.

Are they the same version of LibreOffice? There is a new page break compatibility setting in 24.2, see ReleaseNotes/24.2 - The Document Foundation Wiki

On a long document it can take a little while (a minute or two) for LibreOffice to paginate the entire document and give an accurate page count

Both versions of LibreOffice are 7.4.7.2, the Debian 12 version.

I saved a copy of the document where I embedded the fonts. The document still opens on the other computer with the wrong page count. It does not appear to be a font issue.

Anybody have any ideas? Every setting I’ve explored is exactly the same across computers.

My goal is to be able to save/preserve the exact page count and layout in the Libreoffice Writer document. How do I do this?

The only way to guarantee exact same layout and formatting is with styles. If your documents are heavily direct formatted, the slightest change in LO configuration can result in discrepancies like you experience. What is your routine? Styles or manual formatting?

The entire document is built on styles. Every page has a page style and every paragraph has a paragraph style applied. This is why I am posting this issue here. I created the whole document in styles expecting this to ensure exact replication when opening across domains.