You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reproduce the Bug
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!)
Reacted by Niklas Jansen, Mauro Losurdo, Daniel Dienemann, Salocin03, Filippo Bucciarelli, Volodymyr Kotushenko, Raphael Rose-Andrieux, q-wertz, ranfdev, Alif Yasa and 2 more
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.
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
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:
Stay on 0.10.14 (what you're doing — correct call).
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.
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!
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.
Activity
niklas-jansen commentedon Apr 18, 2026
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.
mahoganybomber commentedon Apr 18, 2026
I have the same problem on Linux Mint 22.2 Cinnamon. Leading particulars below:
Switcha57 commentedon Apr 19, 2026
I have the same problem. I didn't experience it in the last version, downgrading worked for me too.
tomradely commentedon Apr 21, 2026
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.
aka-buccia commentedon Apr 21, 2026
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
jontylerocala commentedon Apr 22, 2026
Downgrading workaround works for me also.
auspiciouslink commentedon Apr 30, 2026
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. Thepagesinithandler still correctly callscurrentScaleValue = "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:
masterincludeef211a5285(Dec 9 2025) which adds proper initial-scale save/restore for file-based graphs, andb107535024(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.1328da6ee3would 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!
tomradely commentedon May 6, 2026
Thanks for this. I am taking option two, and just using zathura in the meantime.
Cinnamon3431 commentedon Jun 8, 2026
This completely ruined Logseq for me... How does this not get any more attention???
How can I downgrade a version?
hbunke commentedon Jul 8, 2026
The latest AppImage does not show this bug. Using that seems to be a better workaround than downgrading the flatpak version.