Optional Dependencies
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
Some input formats require external libraries that are not bundled with the PreviewProxy binary. Install only the ones you need.
| Library | Required for | How it is found |
|---|---|---|
pdfium | PDF input | Beside the binary (./) or on the system library path |
libheif | HEIC / HEIF input | System library path (LD_LIBRARY_PATH / DYLD_LIBRARY_PATH) |
ffmpeg | Video thumbnail extraction | PATH or PP_FFMPEG_PATH environment variable |
pdfium
Section titled “pdfium”PreviewProxy renders PDF files using the PDFium library. Pre-built binaries are available from the pdfium-binaries project - no build tools required.
Download
Section titled “Download”Go to the pdfium-binaries releases page and download the archive for your platform.
| Platform | Archive name |
|---|---|
| Linux x86_64 | pdfium-linux-x64.tgz |
| Linux arm64 | pdfium-linux-arm64.tgz |
| macOS arm64 | pdfium-mac-arm64.tgz |
| macOS x86_64 | pdfium-mac-x64.tgz |
| Windows x86_64 | pdfium-win-x64.zip |
Install
Section titled “Install”Linux / macOS - place beside the binary
Extract the shared library and put it in the same directory as the previewproxy binary:
# Example for Linux x86_64tar -xzf pdfium-linux-x64.tgzcp lib/libpdfium.so /usr/local/bin/PreviewProxy looks for libpdfium.so (Linux) / libpdfium.dylib (macOS) in ./ first, then falls back to the system library path.
Linux - system-wide
sudo cp lib/libpdfium.so /usr/local/lib/sudo ldconfigmacOS - system-wide
sudo cp lib/libpdfium.dylib /usr/local/lib/Windows
Extract pdfium-win-x64.zip and place pdfium.dll (from the bin\ directory) in the same directory as previewproxy.exe.
libheif
Section titled “libheif”Required for HEIC / HEIF input.
Linux
# Debian / Ubuntusudo apt install libheif1
# Arch Linuxsudo pacman -S libheifmacOS
brew install libheifWindows
libheif is statically linked on Windows when built using vcpkg with the x64-windows-static-md triplet (as described in Build from Source). No runtime DLL is required.
ffmpeg
Section titled “ffmpeg”Required for video thumbnail extraction.
Linux
# Debian / Ubuntusudo apt install ffmpeg
# Arch Linuxsudo pacman -S ffmpegmacOS
brew install ffmpegWindows
Download a pre-built build from gyan.dev or install via a package manager:
# wingetwinget install ffmpeg
# Chocolateychoco install ffmpeg
# Scoopscoop install ffmpegAdd the bin\ directory to your PATH, or point PreviewProxy directly at the executable:
$env:PP_FFMPEG_PATH = "C:\ffmpeg\bin\ffmpeg.exe"previewproxyCustom path (all platforms)
Set PP_FFMPEG_PATH to use a non-PATH location:
PP_FFMPEG_PATH=/opt/ffmpeg/bin/ffmpeg previewproxySee the Environment Variables reference for the full list of video-related options.