Skip to content

PDF viewer not showing complete pages #12518

Open

Description

@tomradely

Search first

  • I searched and no similar issues were found

What Happened?

Recently (I am not sure when, or if it corresponds with an update), logseq's built-in PDF viewer has stopped correctly displaying PDF documents. It shows pages as if they are zoomed in towards somewhere in the top-left corner. Zooming out does not correct this, nor does opening the built-in viewer in a separate window.

Image Image

Reproduce the Bug

  1. Open pdf document with logseq's built-in PDF viewer

Expected Behavior

Logseq's PDF viewer should show full pages normally instead of rendering (?) pages only partially within the boundaries of the page objects (?).

Screenshots

No response

Desktop or Mobile Platform Information

Debian testing (forky), River WM, flatpak release of logseq (10.15)

Additional Context

I have not previously had any issues with logseq's built-in PDF viewer in either DWL or River. I rely quite heavily on it so this came as a shock.

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Activity

  1. niklas-jansen commented on Apr 18, 2026

    @niklas-jansen

    Can reproduce, I am not sure if it is an issue with logseq or an issue with how logseq is published on flathub.

    As a workaround you can go back to the previous flathub release. That at least works on my machine.

    sudo flatpak update --commit=e0e49d396a630c00ba46f859bbfcb5e3fe4455cc089cd4a776b77029783d60cd com.logseq.Logseq
  2. mahoganybomber commented on Apr 18, 2026

    @mahoganybomber

    I have the same problem on Linux Mint 22.2 Cinnamon. Leading particulars below:

    Image
  3. Switcha57 commented on Apr 19, 2026

    @Switcha57

    Can reproduce, I am not sure if it is an issue with logseq or an issue with how logseq is published on flathub.

    As a workaround you can go back to the previous flathub release. That at least works on my machine.

    sudo flatpak update --commit=e0e49d396a630c00ba46f859bbfcb5e3fe4455cc089cd4a776b77029783d60cd com.logseq.Logseq

    I have the same problem. I didn't experience it in the last version, downgrading worked for me too.

  4. tomradely commented on Apr 21, 2026

    @tomradely
    Author

    I have found two work arounds, the second of which might help to explain the problem: One is just opening my pdfs in something else. The other is zooming waaaaay out with ctrl-minus. That makes the fonts of the rest of logseq unreadable, of course, but i can just zoom back in with ctrl-plus when I am ready to write my notes.

  5. aka-buccia commented on Apr 21, 2026

    @aka-buccia

    As already pointed out, I can confirm downgrading to 0.10.14 fixs the problem.
    When comparing the behavior of the two versions, in 0.10.15 seems like the zoom (Ctrl +/-) is also applied to PDF viewer, whereas in 0.10.14 the zoom is applied exclusively to the notes screen.
    This means you have to zoom out significantly in 0.10.15 to view the PDF in a proper way, with the downside of making the rest of logseq look really small

  6. jontylerocala commented on Apr 22, 2026

    @jontylerocala

    Downgrading workaround works for me also.

  7. auspiciouslink commented on Apr 30, 2026

    @auspiciouslink

    I'm not a developer, but I do run a local gitea server to mirror my favorite open source projects so I can point Claude Code at them when something breaks to try to diagnose when it broke and where. I was having the same problem and also solved it by reverting to 0.10.14, but here's what Claude Code has to say about the problem:


    The breaking commit: 1328da6ee3 — "enhance(dev): upgrade pdfjs (#11914)", June 2025, shipped in 0.10.15.

    What it changed: pdfjs-dist 3.9.179 → 4.2.67. This is a major version bump.

    pdfjs 4.x changed how the PDFViewer computes "auto" scale and how it interacts with the container element. The pagesinit handler still correctly calls currentScaleValue = "auto", but something in pdfjs 4.x's internal scale calculation produces a scale that's too large for the visible container — hence "only the top-left corner is visible."

    Why zooming out doesn't fix it: The scale is wrong at the root, and the adjust-viewer-size! function only fires on panel resize, not when you zoom in/out via the toolbar. Manually zooming just applies another scale on top of the broken initial one.

    Your options right now:

    1. Stay on 0.10.14 (what you're doing — correct call).
    2. Watch for 0.10.16. Post-0.10.15 commits on master include ef211a5285 (Dec 9 2025) which adds proper initial-scale save/restore for file-based graphs, and b107535024 (Dec 15 2025) which fixes pdfjs API extern hints that could cause minification-related breakage. Neither directly fixes the auto-scale calculation, but the next release may include CSS or pdfjs config fixes not yet in this mirror.
    3. File or upvote the GitHub issue — since you already found the reported issue, adding detail that this bisects to 1328da6ee3 would help the maintainers.

    The root cause is a pdfjs 3→4 compatibility gap in how auto scale is computed relative to the Logseq container element — not a simple one-line fix you can patch in the app's JS without rebuilding.


    So here I am staying on 0.10.14 and doing what I can to upvote the GitHub issue, and hopefully provide context that leads to a fix! The PDF viewer is one of my most beloved features!

  8. tomradely commented on May 6, 2026

    @tomradely
    Author

    I'm not a developer, but I do run a local gitea server to mirror my favorite open source projects so I can point Claude Code at them when something breaks to try to diagnose when it broke and where. I was having the same problem and also solved it by reverting to 0.10.14, but here's what Claude Code has to say about the problem:

    The breaking commit: 1328da6ee3 — "enhance(dev): upgrade pdfjs (#11914)", June 2025, shipped in 0.10.15.

    What it changed: pdfjs-dist 3.9.179 → 4.2.67. This is a major version bump.

    pdfjs 4.x changed how the PDFViewer computes "auto" scale and how it interacts with the container element. The pagesinit handler still correctly calls currentScaleValue = "auto", but something in pdfjs 4.x's internal scale calculation produces a scale that's too large for the visible container — hence "only the top-left corner is visible."

    Why zooming out doesn't fix it: The scale is wrong at the root, and the adjust-viewer-size! function only fires on panel resize, not when you zoom in/out via the toolbar. Manually zooming just applies another scale on top of the broken initial one.

    Your options right now:

    1. **Stay on 0.10.14** (what you're doing — correct call).
    
    2. **Watch for 0.10.16.** Post-0.10.15 commits on `master` include `ef211a5285` (Dec 9 2025) which adds proper initial-scale save/restore for file-based graphs, and `b107535024` (Dec 15 2025) which fixes pdfjs API extern hints that could cause minification-related breakage. Neither directly fixes the auto-scale calculation, but the next release may include CSS or pdfjs config fixes not yet in this mirror.
    
    3. **File or upvote the GitHub issue** — since you already found the reported issue, adding detail that this bisects to `1328da6ee3` would help the maintainers.
    

    The root cause is a pdfjs 3→4 compatibility gap in how auto scale is computed relative to the Logseq container element — not a simple one-line fix you can patch in the app's JS without rebuilding.

    So here I am staying on 0.10.14 and doing what I can to upvote the GitHub issue, and hopefully provide context that leads to a fix! The PDF viewer is one of my most beloved features!

    Thanks for this. I am taking option two, and just using zathura in the meantime.

  9. Cinnamon3431 commented on Jun 8, 2026

    @Cinnamon3431

    This completely ruined Logseq for me... How does this not get any more attention???
    How can I downgrade a version?

  10. hbunke commented on Jul 8, 2026

    @hbunke

    The latest AppImage does not show this bug. Using that seems to be a better workaround than downgrading the flatpak version.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions