Hey folks!
The post may be a bit long. Please bear with me.
I am the developer of BentoPDF. It's a privacy first PDF toolkit that runs in your browser. I also have been working on making the best open source PDF compression engine, Hyper Compress, which is the what the post is about.
Why Hyper?
If you've ever needed to shrink a PDF you've almost certainly used Ghostscript. Even though it's great, but it rebuilds the whole document from scratch, so it can leave visual artefacts behind, and in our tests on 2,104 real PDFs it broke about 3% of files and made a quarter of them bigger.
Benchmark against open source tools
Hyper helps solve this issue. It is a high fidelity, monotonic compression engine. On those same 2,104 PDFs it beat Ghostscript, MuPDF and qpdf on size at every level, without making a single file bigger, and thus providing predictable outcome all while producing a conformant PDF.
Benchmark against commercial SDKs
For the new release I also ran a comparison against the commercial SDKs companies pay for. Hyper was tested against PDF Tools, Apryse and Nutrient on 1,000 real PDFs from public sources. The table shows size saved, with page quality after the @ (SSIMULACRA2, where 100 means identical to the original):
| Engine | Lossless | 200 dpi | 150 dpi | 72 dpi | |
|
|
|
|
| | Hyper | 18.0% @ 99.5 | 61.0% @ 89.8 | 70.2% @ 86.4 | 79.9% @ 67.9 | | PDF Tools | N/A | 55.1% @ 86.7 | 64.7% @ 82.9 | 75.6% @ 72.2 | | Apryse | N/A | 41.8% @ 88.4 | 55.6% @ 85.8 | 74.6% @ 73.4 | | Nutrient | N/A | 55.2% @ 87.8 | 61.5% @ 82.8 | 72.0% @ 70.8 |
Hyper made the smallest files at every level, and it's the only one with a lossless mode. Across its 4,000 runs it never failed and never made a file bigger. The others made between 5 and 120 files bigger, and Apryse and Nutrient failed on a few. At 72 dpi they keep a bit more quality, because they compress less.
But please Don't take my word for it. The list of PDFs with checksums, every per file result and the scripts are all in bench/sdk-comparison, so you can run it yourself.
It's available in CLI, Node SDK, C API, Docker, and can also run in your browser via WASM.
If you wanna quickly try it out: https://hyper.bentopdf.com/
It runs on your own browser via WASM, so nothing is uploaded.
I'd like to get more people testing it, especially with PDFs I haven't encountered myself. So if you work with PDFs regularly, I'd love for you to throw some difficult files at it and try and break it.
Any feedback and bug report is welcome and appreciated.
Thanks for reading and have a great day.
Hello folks!
I would like to share an update about BentoPDF. It's an open source privacy first PDF toolkit that runs in your browser.
1. You can now actually edit text inside PDFs
BentoPDF now allows you to click existing text, edit it, and have the text reflow while preserving the original fonts and styling.
It also includes:
- Bold, italic, underline, strikethrough, superscript, subscript, font family/size, colours, outlines, character spacing and line spacing
- Left, centre, right and justified alignment
- Bulleted and numbered lists with indentation
- RTL and LTR text alignment
- Find and replace across the document
- Edit images by rotating, flipping, duplicating, resizing or deleting them
- Object alignment, distribution, rotation, flipping, duplication
Please note this is a work in progress. You may encounter bugs, which you can report and I will look into.
2. Hyper Compress
Hyper is an open source PDF compression engine built to solve specific problems.
- Compression sometimes returns a file larger than the original. Hyper's result is always binary: it either produces a smaller PDF or returns the original. This helps create predictable workflows.
- Hyper includes a true lossless mode. It preserves searchable text, document structure and PDF conformance, rather than rebuilding the document from scratch like Ghostscript.
- It runs everywhere: CLI, Node SDK, C API, self hosted service, and WebAssembly build.
Repository and benchmarks: https://github.com/alam00000/bentopdf-hyper-compress
I also compared it to Adobe's compression API, but only managed around 100 PDFs where results were within 5%. Testing on a bigger corpus got expensive.
3. Kura
Kura is a PDF standards, conversion and preflight engine.
It supports:
- All 11 PDF/A conformance levels: PDF/A-1a, PDF/A-1b, PDF/A-2a, PDF/A-2b, PDF/A-2u, PDF/A-3a, PDF/A-3b, PDF/A-3u, PDF/A-4, PDF/A-4e and PDF/A-4f
- Accessibility: PDF/UA-1 and PDF/UA-2
- Print production: PDF/X-1a, PDF/X-3, PDF/X-4, PDF/X-4p, PDF/X-5g, PDF/X-5n and PDF/X-5pg
- Engineering and variable data printing: PDF/E-1 and PDF/VT
- E-invoices: Factur-X, ZUGFeRD, XRechnung and Order-X
- 396 bundled print-preflight profiles
It has been tested against several standards suites, including the veraPDF corpus, Isartor, BFO, Ghent Output Suite 5.0, the PDF/UA Reference Suite and Cal Poly's PDF/VT suite.
Across 30,677 PDF conversions it had zero crashes and zero timeouts, with a 0.05 second median conversion time.
Like Hyper, it ships as a CLI, C library, npm package, Docker image and WebAssembly build.
Repository and benchmarks: https://github.com/alam00000/bentopdf-kura
The release also contains other improvements and bug fixes: https://github.com/alam00000/bentopdf/releases/tag/v2.8.8
Thank you and have a great weekend!
Hello folks!
I would like to share an update about BentoPDF. It's an open source privacy first PDF toolkit that runs in your browser.
1. You can now actually edit text inside PDFs
BentoPDF now allows you to click existing text, edit it, and have the text reflow while preserving the original fonts and styling.
It also includes:
- Bold, italic, underline, strikethrough, superscript, subscript, font family/size, colours, outlines, character spacing and line spacing
- Left, centre, right and justified alignment
- Bulleted and numbered lists with indentation
- RTL and LTR text alignment
- Find and replace across the document
- Edit images by rotating, flipping, duplicating, resizing or deleting them
- Object alignment, distribution, rotation, flipping, duplication
Please note this is a work in progress. You may encounter bugs, which you can report and I will look into.
2. Hyper Compress
Hyper is an open source PDF compression engine built to solve specific problems.
- Compression sometimes returns a file larger than the original. Hyper's result is always binary: it either produces a smaller PDF or returns the original. This helps create predictable workflows.
- Hyper includes a true lossless mode. It preserves searchable text, document structure and PDF conformance, rather than rebuilding the document from scratch like Ghostscript.
- It runs everywhere: CLI, Node SDK, C API, self hosted service, and WebAssembly build.
Repository and benchmarks: https://github.com/alam00000/bentopdf-hyper-compress
I also compared it to Adobe's compression API, but only managed around 100 PDFs where results were within 5%. Testing on a bigger corpus got expensive.
3. Kura
Kura is a PDF standards, conversion and preflight engine.
It supports:
- All 11 PDF/A conformance levels: PDF/A-1a, PDF/A-1b, PDF/A-2a, PDF/A-2b, PDF/A-2u, PDF/A-3a, PDF/A-3b, PDF/A-3u, PDF/A-4, PDF/A-4e and PDF/A-4f
- Accessibility: PDF/UA-1 and PDF/UA-2
- Print production: PDF/X-1a, PDF/X-3, PDF/X-4, PDF/X-4p, PDF/X-5g, PDF/X-5n and PDF/X-5pg
- Engineering and variable data printing: PDF/E-1 and PDF/VT
- E-invoices: Factur-X, ZUGFeRD, XRechnung and Order-X
- 396 bundled print-preflight profiles
It has been tested against several standards suites, including the veraPDF corpus, Isartor, BFO, Ghent Output Suite 5.0, the PDF/UA Reference Suite and Cal Poly's PDF/VT suite.
Across 30,677 PDF conversions it had zero crashes and zero timeouts, with a 0.05 second median conversion time.
Like Hyper, it ships as a CLI, C library, npm package, Docker image and WebAssembly build.
Repository and benchmarks: https://github.com/alam00000/bentopdf-kura
The release also contains other improvements and bug fixes: https://github.com/alam00000/bentopdf/releases/tag/v2.8.8
Thank you and have a great weekend!
Hello everyone,
As mentioned earlier in this post: https://lemmy.world/post/41783666, we lost access to our bentopdf Docker Hub account. Despite contacting Docker Hub support, the issue has remained unresolved for over 10 days. As a result, we have migrated to a new Docker Hub account.
The images under bentopdf/bentopdf are no longer maintained by us. The new official Docker Hub repository for BentoPDF is bentopdfteam/bentopdf.
Additionally, GHCR (GitHub Container Registry) is now our recommended container registry, and we have added support for Podman Quadlet.
Over the next few updates, we will be working on releasing the following features: • PDF to PDF/X conversion • Bates Numbering • PKCS#11 support • PDF text editing support
Thank you for your patience and continued support.
Hi everyone. Hope you are well. BentoPDF recently hit 10k stars on Github in just under 3 months of launch and I am very grateful to the community! ❤️
BentoPDF's new version has been released. And I had implemented some of the requested feature here such as: Digital Signing of PDFs and Validation along with Email to PDF support and Deskewing of PDF. I have attached the release note link with the post. Moreover the OCR feature now performs on par with OCRMyPDF.
The reason I am making this post is gain feedback on the existing features of Bento, but most importantly Bento is going to have a Desktop version soon. Initially it will be launched for Mac users. Bento is inherently fast, but browsers and wasm have limitations, and this aims to solve it with the use of native libraries and leverage the CPU for faster processing and handling of large files efficiently.
I want to know what is the feature you use the most or is there any feature you'd like to be done that existing PDF softwares don't do well. I am happy for any feedback! Thank you (:
Hi folks!
I’m the creator of BentoPDF. It is an open source PDF toolkit that runs entirely in your browser. Your documents stay private, by design.
BentoPDF started as a small side project, but over time it has grown into something much bigger. With our latest major update, BentoPDF now includes 100+ tools, all running fully client-side.
You can do the basics like merge PDFs(while preserving bookmarks), split documents, extract or delete pages, reorder files, rotate pages, and compress PDFs. Thee are also some advanced tools.
You can edit and annotate PDFs directly in the browser: highlight text, add comments, draw shapes, insert images, fill(including XFA) and create forms, manage bookmarks, generate tables of contents, redact, add headers, footers, watermarks, and page numbers.
BentoPDF also supports an extensive range of file conversions. You can convert Word, Excel, PowerPoint, OpenOffice, Pages, CSV, RTF, EPUB, MOBI, comic book formats, and many more into PDFs, and also convert PDFs back into Word, Excel, images, Markdown, CSV, JSON, and plain text.
For images, BentoPDF supports a massive variety of formats, including HEIC, WebP, SVG, PSD, JP2, and and aalso other formats such as EPUB, CBR/CBZ. You can convert images to PDFs, extract images from PDFs in their original format, or rasterize PDFs with full DPI control.
There are also organization and optimization tools: OCR, PDF/A conversion, booklet creation, N-up layouts, page division, attachment management, layer (OCG) editing, metadata inspection and editing, repair tools, and advanced compression algorithms that rival commercial solutions.
The latest update also includes AI ready extraction tools to export PDFs to structured JSON, extract tables as CSV/Markdown/JSON, and prepare PDFs for RAG and LLM workflows.
All of this works entirely in the browser, without accounts, uploads, or tracking.
This is my first post here and I hope you like it. Any feedback or feature requests are appreciated. Thank you.
Github Link: https://github.com/alam00000/bentopdf