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
I understand this is a feature request and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
User Story
As a user, I want the Web UI to support rich previews of PDF files so that I can easily view documents and reports directly without downloading them.
User Value
Quickly preview PDF documents directly in the browser
Enhance overall usability for teams working with reports, invoices, and multi-page documents
Acceptance Criteria
Web UI shows an inline preview (thumbnail) of PDF files
Clicking a PDF opens a full-size, scrollable and zoomable preview viewer
original request
It would be great to have PDF previews, especially now that we have tiles view on every page. Seeing a quick preview without opening the file would make browsing much faster and more convenient.
Reacted by Klaas Freitag, db-ot, Felix Becker, Àngel Mariages, Johann Stieger and Lure5134
We need to check how the libvips is built within our image. It can be built with different PDF readers, which can be configured to not load Javascript.
Example: If our libvips is built with pdfium, it needs to be verified that the version of pdfium is built with option pdf_enable_v8 = false # Set false to remove Javascript support..
If somebody points me to the build instructions for our libvips that we use, I am happy to check that.
Back in the days, distributions were making sure that dependencies were secure. That was great.
Reacted by Alex, Benedikt Kulmann and Àngel Mariages
Poppler (via poppler-glib) — the most common backend in distro packages. GPL-licensed, which is why some binary distributions avoid it. Loaded via vips pdfload, and you can pick pages (page, n parameters) and set render DPI or scale.
PDFium — Google's PDF engine from Chromium. Faster and generally considered more robust against malformed input, but it's not in most distro builds because PDFium doesn't ship as a normal system library; you typically have to build libvips against a prebuilt PDFium yourself. If both are present at build time, libvips prefers PDFium.
In some cases, where imagemagic is installed, it cann fall back to that via ghostscript.
Security
Poppler has a long CVE history: heap overflows, use-after-free, infinite loops, and OOM conditions from crafted PDFs. Most are DoS-grade, but memory-corruption bugs with code-execution potential appear regularly. You're only as safe as your distro's patch cadence.
PDFium also gets CVEs, but it's fuzzed continuously by Google as part of Chrome and is generally hardened faster.
The Ghostscript fallback path is the worst case. Ghostscript has had multiple sandbox-escape RCEs (e.g., the -dSAFER bypasses, CVE-2023-36664, the 2024 format-string RCE CVE-2024-29510). If your libvips is routing PDFs through ImageMagick→Ghostscript without your knowledge, that's worth fixing explicitly. Check ImageMagick's policy.xml — many distros now disable PDF coders there for exactly this reason.
Resource exhaustion is the everyday risk even without a code-exec bug: decompression bombs, pathological page geometries, or PDFs that render at huge dimensions. libvips lets you cap this (VIPS_MAX_MEM, checking page dimensions before rendering, limiting dpi).
Just a wild idea, please don't take it too serious: What if users/clientds crowdsource the preview images?
When they open it inside client app or browser, a snapshot of first page is taken and somehow associated (uploaded) then server side with the file and can be re-downloaded by other clients/browsers?
Activity
rhafer commentedon Oct 14, 2025
PDFs can also embed Javascript code, so basically #1465 (comment) does apply here as well.
cc @db-ot @tbsbdr
[-]PDF previews[/-][+][FR] PDF previews[/+]db-ot commentedon Oct 14, 2025
needs backend support
micbar commentedon Oct 14, 2025
Needs security concept.
dragotin commentedon Oct 14, 2025
We need to check how the libvips is built within our image. It can be built with different PDF readers, which can be configured to not load Javascript.
Example: If our libvips is built with pdfium, it needs to be verified that the version of pdfium is built with option
pdf_enable_v8 = false # Set false to remove Javascript support..If somebody points me to the build instructions for our libvips that we use, I am happy to check that.
Back in the days, distributions were making sure that dependencies were secure. That was great.
rhafer commentedon Oct 14, 2025
Our images are alpine based currently. I don't know much about alpine package building, but I suppose this is
specfile equivalent for libvips on alpine: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/vips/APKBUILDIIUC it's using poppler for PDF support.
[-][FR] PDF previews[/-][+][FR] PDF Preview[/+]tbsbdr commentedon Jun 30, 2026
PB
kulmann commentedon Jun 30, 2026
Yes, please include me, we should discuss this again.
micbar commentedon Jul 20, 2026
Technical additions
Libvips supports two pdf rendering backends
Poppler (via poppler-glib)— the most common backend in distro packages. GPL-licensed, which is why some binary distributions avoid it. Loaded via vips pdfload, and you can pick pages (page, n parameters) and set render DPI or scale.PDFium — Google's PDF engine from Chromium. Faster and generally considered more robust against malformed input, but it's not in most distro builds because PDFium doesn't ship as a normal system library; you typically have to build libvips against a prebuilt PDFium yourself. If both are present at build time, libvips prefers PDFium.In some cases, where
imagemagicis installed, it cann fall back to that via ghostscript.Security
tbsbdr commentedon Jul 21, 2026
PDF preview: using a dedicated imagor container could be an option as described here by @butonic #1128
guruz commentedon Oct 15, 2026
Just a wild idea, please don't take it too serious: What if users/clientds crowdsource the preview images?
When they open it inside client app or browser, a snapshot of first page is taken and somehow associated (uploaded) then server side with the file and can be re-downloaded by other clients/browsers?
dschmidt commentedon Oct 15, 2026
PDF Previews are supported in