报道正文
本文目录10 个章节
Pryzmera is an extremely fast PDF viewer, built specifically to handle the most complex and demanding documents with no lag or stutters.
Includes a free 30-day trial
Features
Performance
From technical drawings to thousand-page manuals, Pryzmera can open documents up to 10x faster and render pages over 1000x faster compared to other PDF viewers, making panning and zooming frictionless, even in massive PDFs.
Text Search
Once the document is loaded, Pryzmera can find any text virtually instantly. In a thousand-page PDF, the search typically completes in 0.03 seconds or less.
Image Viewer
In addition to PDFs, Pryzmera also doubles as a fast image viewer, capable of rendering images with billions of pixels without lag.
Rotation
Pryzmera is not limited to 90° rotations, and can rotate documents by any amount.
Dark Mode
Pryzmera can invert the colors of the document, for those who prefer a dark background with light text. Dark mode can be set as the default mode from the settings.
Minimal UI
Pryzmera maximizes the space available for the document by only showing a small toolbar at the top. The toolbar can be hidden with a keybinding, allocating the entire window to the document.
Screenshots
Pryzmera can take screenshots of the entire page or the visible area with virtually any resolution.
Keyboard Navigation
Almost every action has a customizable keybinding, enabling efficient navigation while using only the keyboard.
Customization
Many aspects of Pryzmera can be customized, including keybindings, navigation speed, graphics quality, and more.
作者发帖说明(HN):
In September of 2021, my father told me he was struggling to open PDFs. As part of his job, he had to view many PDFs with millions of vector paths that were generated by CAD software, and we could not find any PDF viewer that would render them at more than a few frames per second.
I thought that if we simply converted those paths into triangles the GPU could just blast through them. Today, after more than 5 years and 3 iterations in 3 different languages, I would like to share with you the 3rd iteration of my PDF viewer: Named "Pryzmera", I wrote it by hand with the goal to render those CAD PDFs at interactive frame rates, and with the intention to make every feature as fast as I could possibly imagine it to be.
When Pryzmera opens a document, it first starts by interpreting each page. As a page is interpreted, it generates small clipping & tessellation jobs that run in parallel. Clipping & tessellation is performed by Pryzmera's own tessellator and produces the initial geometry for the page. This geometry is then collected and jointly optimized to produce a final GPU representation that mostly consists of colored/textured triangles. The representation is completely static, which in turn makes rendering performance (FPS) almost static, even when the view changes (e.g. panning/zooming/rotating). Once the representation is uploaded to the GPU, rendering a page typically requires only 3-4 draw calls.
On my machine (GTX1080/i7-5820k), Pryzmera can render my father's CAD PDFs a...