Skip to content
Zdong104Public

About

Preview for Linux, Windows

Resources

Code of conduct

Contributing

Security policy

Stars

8 stars

Watchers

0 watching

Forks

Repository files navigation

View

A Preview app for Ubuntu, Windows, Chrome extension. View, annotate and sign PDFs, images, CAD drawings, 3D models, Markdown, tables and video in one fast GTK4 + libadwaita app, sign with your laptop touchpad, and translate documents offline.

License: PolyForm Noncommercial Release Downloads 中文

A PDF translated side by side into Chinese, offline

Snap

sudo snap install view --edge && sudo snap connect view:raw-input

What's new in 0.2.8

  • PDF notes open again. Notes saved in a PDF, whether by View or another app, used to show only as an icon that couldn't be opened. View now loads them, so you can read, edit, move and delete them, and saving keeps the author and the note's ID.
  • Notes in a side panel. The page shows only a small note icon. Each note's text appears on a card to the right, level with its icon, with the author and time, like comments in a document editor. Click a card to edit it (Ctrl+Enter or clicking away keeps the edit, Escape cancels). Clicking an icon highlights its card.
  • No more duplicate tabs. Opening a file that's already open switches to its tab and brings its window to the front, instead of opening a second copy.
  • "Don't ask again" when overwriting a PDF. Tick it in the Overwrite dialog to save straight to the file from then on. Turn the question back on with Ask before overwriting PDFs in Preferences.
  • One Draw tool. Draw and Sketch are now a single tool: draw freely, or hold still at the end of a stroke to turn it into a shape.

Earlier changes are listed on the Releases page.

Screenshots

Translating a selected paragraph in a floating card
Translate a selection in a card you can move and resize
A Markdown file translated into Spanish, structure kept
Markdown translated with its structure kept
A Python file with its comments and docstrings translated
Code: only comments, docstrings and strings are translated
Markdown source and rendered preview side by side
Markdown in Split view
A mechanical drawing in the DXF viewer
DXF drawings
The DXF viewer in dark mode with the Layers panel open
Dark mode and the Layers panel
Signing a PDF in View
Signing a PDF
Markup on an image
Markup on an image
3D model viewer
3D models
CSV viewer
CSV / TSV tables

Features

Documents

  • PDF: fast on huge files (1,000-page and 600 MB scanned PDFs tested), thumbnails, search, text selection, print, Get Info. Reloads when the file changes on disk.
  • Forms: type into text fields right on the page; Tab / Shift+Tab move between fields.
  • Page editing: select thumbnails and press Delete, reorder, rotate, insert, merge several PDFs, drag pages out. Ctrl+S with pages selected saves just those pages as a new PDF.
  • Export and protect: export pages to images, password-encrypt, reduce file size.
  • Sign with the touchpad: your touchpad becomes a 1:1 drawing surface, like macOS Preview; click the box or press Space to start. Signatures are stored as vectors. Mouse and pen work too.
  • Markup on PDFs and images: sketch, shapes, arrows, text boxes, notes, highlight / underline / strikethrough.

Images

  • Images: zoom, pan, pinch, rotate, flip, crop (Ctrl+K, with aspect ratio presets), adjust colour, instant alpha, resize, EXIF/GPS info. Animated GIF / WebP / APNG keep their animation when edited.
  • Screenshots: Print Screen (Linux) or Snipping Tool / Win+Print Screen (Windows) opens the capture in View for quick markup; Done saves it back to Screenshots and copies it to the clipboard.
  • Batch tools: convert selected images, combine images into a PDF (also from the GNOME Files right-click menu).

CAD and 3D

  • DXF drawings (2D CAD): lines, arcs, splines, text, dimensions, hatches and blocks with their layer colours, linetypes and lineweights. A Layers panel shows and hides layers (off and frozen layers start hidden); touchpad pan and pinch, mouse-wheel zoom at the pointer; colours adapt to dark mode. Get Info shows units, size, extents and layer / block / entity counts; Export As writes PDF, SVG or PNG. Also opens loosely written DXF files, such as CATIA or script exports without subclass markers or handles, that strict parsers refuse.
  • 3D models: STL / OBJ / PLY, orbit with the touchpad, dimensions / volume / area (10M triangles tested).

Text, code and tables

  • Markdown: rendered preview with a Source / Split / Preview switch (Preview by default, your choice is remembered), updated while you edit. In Split view the two sides scroll together; turn Sync Scrolling off in the ⋮ menu to scroll them separately. Headings, tables, task lists, block quotes, highlighted code blocks, local images and clickable links (web, relative files, #heading anchors). No web engine needed, so it works the same on Windows.
  • Text and code viewer and editor with syntax highlighting.
  • Tables: CSV / TSV viewer and editor (1M rows).

Translation and Live Text

  • Translate, offline: select text and choose Translate to see the translation in a card next to the selection (move it, resize it, copy it), or choose Translate Document… to see the whole document side by side, original on the left, translation on the right, scrolling together. The translation pane can also move to a window of its own.
    • PDF: follows the page you are looking at and translates the next one ahead. Formulas and figures are left as they are. Save writes the whole document's translation.
    • Markdown: the structure is kept; only the prose is translated, code, links and markup stay untouched, and the result can be saved as .md.
    • Code: only comments, docstrings and strings are translated; the lines stay where they were.
    • CSV / TSV: same rows and columns; numbers, dates, IDs and codes are skipped. Save writes the translated table.
    • Images and scanned pages go through Live Text first (needs the OCR engine).
    • The source language is detected automatically; parts of the text already in the target language are kept as written.
    • Two models, chosen in Preferences → Translation → Model:
      • High quality: Tencent's Hy-MT2-1.8B translation model on llama.cpp, a 1.2 GB download on first use. It translates a paragraph at a time, keeps benchmark names, code and acronyms as written, and covers 23 of the 30 languages. It runs on the GPU through Vulkan (a few seconds per page) and falls back to the processor, which is much slower (minutes per document).
      • Fast: Argos Translate language packs on CTranslate2 (70–300 MB per language pair, downloaded the first time you use it), all 30 languages, lower quality. Swedish, Greek, Romanian, Hungarian, Finnish, Danish and Norwegian always use it.
      • Automatic (the default) picks High quality when there is a dedicated GPU, otherwise Fast. The same page shows which GPU the model runs on, picks the default target language, and removes downloaded models and packs.
    • Nothing leaves your computer. The engine is built into the snap and the Windows build; with the .deb or a source install, View offers to download it (about 45 MB) the first time you translate.
  • Live Text (OCR): select and copy text in images and scanned PDFs, export searchable PDFs (RapidOCR, CPU, English + Chinese).

Media

  • Video and audio, with hardware (VA-API) decoding on Linux.

System integration

  • Tabs: files open as tabs of one window (or a window per file, in Preferences). Right-click a tab to move it to a new window or to Open in Split View, two files side by side.
  • Opens in about a second: after the last window closes, View keeps running in the system tray, so the next file appears almost at once. Quit from the tray or with Ctrl+Q, or turn it off in Preferences. On GNOME the tray needs the AppIndicator extension (on by default in Ubuntu).
  • Quick Look for GNOME Files: press Space to preview a file (replaces Sushi; opt-in).
  • Interface languages: English and 简体中文 (Preferences → Language, or follow the system). Translations welcome, see CONTRIBUTING.md.
  • Updates: View tells you about new releases and can install them for you (see Updating).

Install

Ubuntu / Debian (.deb)

Download view_0.2.8_all.deb (or grab it from the Releases page), then:

sudo apt install ./view_0.2.8_all.deb

Or in one go:

wget https://github.com/Zdong104/View/releases/download/v0.2.8/view_0.2.8_all.deb && sudo apt install ./view_0.2.8_all.deb

apt is recommended because it also installs the dependencies. If you prefer dpkg:

sudo dpkg -i view_0.2.8_all.deb && sudo apt -f install

Snap

sudo snap install view --edge && sudo snap connect view:raw-input

The second half lets the sandboxed snap read the touchpad for touchpad signing; without it you can still sign with the mouse, a pen or a finger. If you already installed the snap, just run sudo snap connect view:raw-input. Like every install, touchpad signing also needs your user in the input group (sudo usermod -aG input $USER, then log out and back in).

From a terminal, start it with snap run view (plain view is usually Vim's read-only mode). The snap is sandboxed, so Space-bar Quick Look for GNOME Files is only available in the .deb / source install. The "Combine Images into PDF" right-click item in Files works with a one-time setup (it needs python3-nautilus; the last step restarts Files):

sudo apt install python3-nautilus && mkdir -p ~/.local/share/nautilus-python/extensions && snap run view --print-files-extension > ~/.local/share/nautilus-python/extensions/view-app.py && nautilus -q

The .deb installs that menu item for you when python3-nautilus is present (apt recommends it).

Windows (experimental)

Download View-Setup-0.2.8.exe (installer) or View-0.2.8-windows-portable.zip (no install). It is tested on a real Windows 11 laptop, but feedback is still very welcome. Touchpad signing works like on Linux: click the box or press Space and sign with one finger, no clicking. It needs a Precision Touchpad (most laptops since 2016); otherwise draw with the mouse or a pen.

Updating from 0.1.6–0.1.9: in those versions the background screenshot watcher kept View's files open, so Setup could stop without a message. The 0.2.0 installer stops the watcher itself, also when an older View starts the update. If an update still doesn't go through, end the background View process in Task Manager (or run taskkill /F /IM View.exe), then run View-Setup-0.2.8.exe again.

The first start after installing can take 20 seconds or more while Windows checks each new file (the build isn't code-signed yet, see below). Later starts take about a second.

Known problem: the Windows build isn't code-signed yet, so on PCs with Smart App Control turned on (or a work PC with an App Control policy) it stops at startup with "DLL load failed … An Application Control policy has blocked this file" (#3). Signed builds fix this; until then it only runs where Smart App Control is off (Windows Security → App & browser control → Smart App Control settings). Without Smart App Control, Windows may show a SmartScreen warning instead: click More info → Run anyway.

Text recognition (OCR) and translation each run in a small helper program, ocr\view-ocr.exe and translate\view-translate.exe, which View starts in the background. Translation language packs are downloaded the first time a language pair is used; the high-quality model downloads llama.cpp's own Windows build (Vulkan, with the CPU fallback) next to it and runs it the same way.

Chrome extension (Developer mode only)

View is also supported in Chrome as an extension.

  1. Download view-chrome-0.2.8.zip and unzip it.
  2. Open chrome://extensions, turn on Developer mode, click Load unpacked and choose the unzipped folder.
  3. To open local files, click Details on View and turn on Allow access to file URLs.

From source

git clone https://github.com/Zdong104/View.git
cd View
make run

make install adds this checkout to your app grid as View (Dev), next to any snap or .deb copy; make uninstall removes it again (make purge also deletes its Python venv). make ocr and make translate add the optional OCR and translation engines to the venv.

Updating

View checks GitHub for a new release once a day (turn it off in Preferences → Updates), and every time you open About View or Check for Updates… in the main menu. When there is one, it shows what's new and can install it for you:

Installed with Update
Windows installer Install and Restart downloads the new installer, updates View in place and starts it again
.deb Install… downloads the new .deb and installs it with apt (asks for your password)
Snap The Snap Store updates View automatically; sudo snap refresh view updates now
Windows portable zip, source Download opens the new download in your browser

Downloads are checked against the release's SHA256SUMS before they are installed. From a terminal, view-app --check-updates tells you whether a newer version exists. Every version, including older ones, stays on the Releases page; install an older .deb with sudo apt install --allow-downgrades ./view_<version>_all.deb, or run an older Windows installer over the current one.

Touchpad signing

On Windows it works out of the box with a Precision Touchpad: open New Signature... and click the box or press Space. While you sign, the mouse pointer is paused; press any key to finish. On Linux:

  1. Add yourself to the input group (needed to read the touchpad directly): sudo usermod -aG input $USER, then log out and back in.
  2. Open New Signature... from the app menu (or run view-app --new-signature).
  3. Draw with one finger. Where you touch the pad is where the ink goes. Press any key to finish, then place it on a page.

Compatibility

System Status
Ubuntu 26.04 ✅
Fedora, Arch, other distros ❓ Untested
Windows ✅
Chrome extension ✅ Tested, limited feature
macOS No Support

🙏 Feedback wanted

View is developed and tested only on Ubuntu 26.04 on a Lenovo ThinkPad P1 Gen 8. Everything else is a guess, and your report is the most useful thing you can send.

Contributing

Pull requests are welcome, from typo fixes to new viewers. Read CONTRIBUTING.md for how to run from source, the project layout and the PR checklist. Everyone taking part is expected to follow the Code of Conduct.

Contributors

  • @azkuang: UI translation framework and the Simplified Chinese localization.

Support the project

View is free. If it saves you time, you can support development:

Buy Me a Coffee

GitHub Sponsors is coming soon.

License

View is licensed under the PolyForm Noncommercial License 1.0.0: free for personal, educational, research and other noncommercial use. Commercial use or distribution requires permission; open a GitHub issue or contact the maintainer to ask. Note that this makes View source-available, not OSI-approved open source.

About

Preview for Linux, Windows

Resources

Code of conduct

Contributing

Security policy

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages