flathub / org.libreoffice.LibreOffice

https://flathub.org/apps/details/org.libreoffice.LibreOffice
30 stars 20 forks source link

Text layout issue: the content doesn't fit on the pages and produces extra page breaks #223

Open bam80 opened 1 year ago

bam80 commented 1 year ago

This document opens with extra pages in the flatpak, because the content doesn't fit in the pages sometimes: http://davedub.co.uk/downloads/thai/Thai-English-Lease-Agreement-2.0.pdf

Thus, we can see the first page got a break and was divided into the two, producing almost empty a second page: image Overall, pages amount is 8 vs 6 needed.

I added filesystem=xdg-config/fontconfig:ro permissions override but it had no impact on the issue.

That's in the flatpak LibreOffice version 7.5.2.2, a Snap of the same LO version doesn't suffer from the problem.

Any ideas what could be a reason?

Erick555 commented 1 year ago

Did you check if both flatpak and snap use exactly same fonts to render this doc??

stbergmann commented 1 year ago

I cannot reproduce your issue when running recent LO flatpak on Fedora 37 (GNOME/Wayland). But seeing that your PDF uses fonts that are not typically available in a LibreOffice installation (Tahoma and Times), it might be a duplicate of https://github.com/flathub/org.libreoffice.LibreOffice/issues/136 "fontconfig user configuration".

@bam80 Can you check whether the latest

          ID: org.libreoffice.LibreOffice
         Ref: app/org.libreoffice.LibreOffice/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 7.5.2.2
     License: MPL-2.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 757.4 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: c0d57be19e4682c827694dd22f4e7bcdfc7544c9b92850543922990939dbd2d5
      Parent: 77152f07f4532f90a3df858fb9091211a6bbfdc58abf6c6d5eb0be39ec5a2bb7
     Subject: fix missing user-installed fonts (c80b412a)
        Date: 2023-05-02 13:22:20 +0000

fixes your issue?

bam80 commented 1 year ago

Did you check if both flatpak and snap use exactly same fonts to render this doc??

They seem so, not sure how to check for sure.

@bam80 Can you check whether the latest fixes your issue?

Unfortunately, it's not. I also mentioned it in the OP:

I added filesystem=xdg-config/fontconfig:ro permissions override but it had no impact on the issue.