Skip to content

Set Up BentoPDF on a Linux Server – Edit PDFs in Your Browser Without Uploading

BentoPDF on a Linux server: use the One-Click App or Docker Compose with password protection. Merge, compress, and convert PDFs in your browser.

2 December 202613 min read1 Views0 helpful

Introduction

BentoPDF is a toolkit for PDF files that does all its processing in your browser. You can merge PDFs, split them, sort and rotate pages, compress files, convert Word, Excel, and image files to PDF, redact content, set passwords, or sign documents. The server only delivers the web interface. Your files are not uploaded; they stay on your device. BentoPDF is open source (AGPL-3.0) and does not require an account or sign-in.

In this guide, we’ll show you two ways to get started: the easy way with the One-Click App, which makes BentoPDF available via HTTPS at your own address in just a few clicks, and a manual installation with Docker Compose, including password protection in the reverse proxy. Then we’ll cover the available tools, what happens to your files, and the limitations.

When It Makes Sense to Run BentoPDF on a VPS

Many online PDF tools require you to upload your files to external servers. Running your own BentoPDF instance is worthwhile if:

  • you work with contracts, invoices, or IDs and don’t want to give them to an online service. BentoPDF processes files in your browser, so even your own server never sees them.
  • your team needs a permanent address for PDF tasks, such as pdf.example.com, instead of having to find a different website for every task.
  • you don’t want to install software on every computer. All you need is a current browser, including on devices where you’re not allowed to install anything.
  • your VPS has limited resources. The container is a small nginx web server and only needs a few MB of RAM while running. The device running the browser does the processing.

BentoPDF is less suitable if you want to store documents on the server, manage user accounts, or automate PDF tasks with scripts. It doesn’t provide storage or an API. On low-powered devices such as older smartphones, large tasks also take a long time because the device does the processing.

BentoPDF or Stirling-PDF?

The One-Click App catalog also includes Stirling PDF, another PDF tool. Both offer similar features, but work in very different ways:

BentoPDFStirling-PDF
Where processing takes placeIn your device’s browserOn the VPS
Files on the serverNo, only the interface is served by the serverYes, for processing
Sign-inNoneAdmin account; additional users are possible
VPS requirementsA few MB of RAM, around 0.8 GB for the imageAround 1 GB of RAM when idle, around 4 GB for the image
AutomationIn the interface only (workflow builder)REST API for scripts and workflow tools
Text recognition (OCR)In the browserOn the server with Tesseract and OCRmyPDF

In short: BentoPDF is a good fit if you want files to stay on your device and your VPS is small. Stirling-PDF is a good fit if you need sign-in, multiple users, or an API. For instructions on setting up Stirling-PDF, see How to Set Up Stirling-PDF on a Linux Server.

The Easy Way: BentoPDF as a One-Click App

The fastest way to get BentoPDF is through your VPS’s One-Click Apps. The app is available directly via HTTPS with a domain. You don’t need a reverse proxy, certificate, or firewall rules.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. For instructions, see Set Up One-Click Apps.
  • Around 1 GB of free storage for the image. BentoPDF needs very little RAM on the server; in our test, the container used around 4 MB.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search the App catalog for Bento PDF and click Install app.
  3. The App name field is already set to Bento PDF. You can change the name; it only appears on the app card.
  4. Use a custom subdomain or zap.cloud is already selected. Leave this option enabled and enter a name. You’ll use the domain to access BentoPDF via HTTPS. Choose a name that others won’t easily guess; see “Who Can Use Your Instance” for more information.
  5. You don’t need to fill out any other fields. BentoPDF doesn’t need credentials or a database, so the form doesn’t contain any automatically generated values.
  6. Click Queue installation. After a few minutes, BentoPDF will show as Online on the app card.

First Visit

Open the Access link on the app card. You’ll land on the BentoPDF home page without signing in. The One-Click App uses the project’s full image, so you’ll first see an introduction to BentoPDF at the top, with menu items such as About, Licensing, and Blog. Below that, or by clicking Start Using Now, you’ll find the search field and the tools organized into categories. Click a tile to open a tool.

The interface is available in many languages, including German. Change the language using the selector at the bottom of the page (the English button), or add /de/ to your address. The quickest way to find a tool is to use search, which you can also open with Ctrl+K.

Who Can Use Your Instance

BentoPDF has no sign-in. Anyone who knows the address can use the tools. This doesn’t expose anyone’s data: each person’s files, including your own, stay in the browser on the device being used. There is nothing on the server for anyone to retrieve. We verified this in our test; see “What Happens to Your Files” for more information.

What other users could use up is your bandwidth. Each browser loads the interface and processing modules from your VPS. For basic tools, this amounts to a few MB. To convert Office files, BentoPDF downloads a LibreOffice module of around 78 MB the first time, as we saw when converting Word to PDF. After that, it’s stored in the browser cache. Find out how much traffic your VPS includes under Traffic Allowance.

Warning: The One-Click App Has No Password Protection

The One-Click App doesn’t offer a sign-in setting, and BentoPDF itself doesn’t have one either. Choose a name that’s hard to guess, share the link only with your team, and stop the app from its app card if you won’t need it for a while. If you want to require sign-in, use the manual installation with Basic Auth, as described below under “Protect Your Instance with a Password.” We tested this with merging PDFs and converting Word to PDF.

Also note that the home page links to the official bentopdf.com site as the original. Search engines shouldn’t list your instance as a separate site because of this. However, this doesn’t guarantee that no one will find the address.

Updates and Backup

To check whether a new version is available, open the app settings (gear icon) and select App update. Click Check for updates, then install a new version with Apply update. If the page says the app is up to date, there isn’t a newer version in the app catalog yet. In our test, the One-Click App used BentoPDF v2.8.11.

There’s nothing to back up on the server. BentoPDF doesn’t store any data there. The browser of each user stores any settings they make in the interface.

Manual Installation

The rest of this guide describes the manual installation of BentoPDF with Docker Compose on your VPS. For example, you can use this approach if you don’t use One-Click Apps on your server, want to password-protect the instance, or want to hide tools.

Requirements

  • A Linux VPS running Debian or Ubuntu, with SSH access. See First Access via SSH.
  • Docker and Docker Compose. See Install Docker. Verify the installation with docker --version and docker compose version.
  • For HTTPS: a domain or subdomain whose A record points to your VPS’s IP address (e.g., pdf.example.com).

The official documentation doesn’t specify minimum server requirements. The image contains only nginx and the ready-to-use interface files, including documentation and processing modules for Office files. These values are sufficient in practice:

MinimumRecommended
CPU1 vCore1 vCore
RAM128 MB256 MB
Storage1 GB for Docker and the image2 GB

The device you use to open BentoPDF in your browser needs more resources. Large PDFs and Office conversions can quickly use several hundred MB of RAM on that device.

Prepare the Firewall

BentoPDF listens on port 8080 in the container. You don’t need to open this port if you use a reverse proxy as described below. With ufw, allow only SSH and the ports needed for the reverse proxy:

Code
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Warning: Docker Bypasses ufw

Ports published by Docker with ports: are accessible from outside even if ufw blocks them. Docker adds its own rules before those of ufw. Therefore, bind BentoPDF to 127.0.0.1 as shown in the Compose file below. Otherwise, someone could bypass password protection in the reverse proxy by connecting through the IP address and port. For more information about the firewall, see Managing the Firewall on Linux.

Install with Docker Compose

Create a directory for BentoPDF and go to it:

Code
mkdir -p /opt/bentopdf
cd /opt/bentopdf

Create the Compose file with nano docker-compose.yml. It uses the official image for self-hosting, at the same version as the One-Click App, with a port that’s only accessible locally:

Code
services:
  bentopdf:
    image: ghcr.io/alam00000/bentopdf-simple:v2.8.11
    container_name: bentopdf
    restart: unless-stopped
    ports:
      - 127.0.0.1:3000:8080

Here’s what the entries mean:

  • image: The project offers two images. It recommends bentopdf-simple for self-hosting. It includes all the tools but leaves out the introduction page, the menu with About and Blog, and the footer, opening directly to the tools instead. The bentopdf image without -simple, which the One-Click App uses, also shows the introduction page, like bentopdf.com. Pinning the version number means an update only happens when you choose to apply one.
  • 127.0.0.1:3000:8080: BentoPDF is only accessible from the server itself on port 3000; external access goes through the reverse proxy.
  • restart: unless-stopped: The container starts automatically when the server reboots.

You don’t need a volume because BentoPDF doesn’t store data on the server. Start the container:

Code
docker compose up -d

Check whether everything is running with docker compose ps.

First Visit

Because BentoPDF only listens on 127.0.0.1, you’ll access the interface for the first time through an SSH tunnel. Run this command on your own computer:

Code
ssh -L 3000:localhost:3000 root@SERVER_IP

Replace SERVER_IP with your VPS’s IP address, then open http://localhost:3000 in your browser. If you see the tool overview, the installation is working.

Access via HTTPS Through a Reverse Proxy

To access BentoPDF without a tunnel, put a reverse proxy with a valid certificate in front of it. For the basics, see Set Up a Reverse Proxy with nginx and Create an SSL Certificate (Let's Encrypt). Here’s a server block for nginx, for example, at /etc/nginx/sites-available/bentopdf:

Code
server {
    listen 80;
    server_name pdf.example.com;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Enable the block with ln -s /etc/nginx/sites-available/bentopdf /etc/nginx/sites-enabled/, check the configuration with nginx -t, and reload nginx with systemctl reload nginx. Then obtain the certificate with certbot --nginx -d pdf.example.com. Certbot adds HTTPS and HTTP redirection to the block.

You don’t need to limit the upload size as you might for other apps (client_max_body_size), because BentoPDF doesn’t send files to the server. The container sets the security headers required by BentoPDF’s processing modules. nginx passes them through unchanged.

Protect Your Instance with a Password

BentoPDF doesn’t have its own sign-in. If you want only your team to be able to access the instance, add username and password authentication (Basic Auth) in front of it in the reverse proxy. Install the tool for the password file and add a user:

Code
apt install apache2-utils
htpasswd -c /etc/nginx/bentopdf.htpasswd YOUR_NAME

Add more people with htpasswd /etc/nginx/bentopdf.htpasswd NAME, without -c. Add these two lines to the location block in your server block, then reload nginx with systemctl reload nginx:

Code
auth_basic "BentoPDF";
auth_basic_user_file /etc/nginx/bentopdf.htpasswd;

The first time you visit, your browser will ask for a username and password. Without signing in, nginx responds with the 401 error. The browser then loads all processing modules using the same authentication. In our test, both merging and converting Word to PDF worked behind Basic Auth. Find more tips for securing your server under Linux Security Tips.

Back Up Your Data

The server only contains the Compose file, the nginx server block, and, if created, the password file and a custom config.json (see “Hide Tools”). Back up these files:

Code
tar -czf bentopdf-backup-$(date +%F).tar.gz /opt/bentopdf /etc/nginx/sites-available/bentopdf /etc/nginx/bentopdf.htpasswd

If you haven’t created one of the files, simply leave it out of the command. The PDFs themselves are never stored on the server, so they aren’t included in the backup either.

Update BentoPDF

Find new versions on the project’s release page. Update the version number for image in the Compose file, for example to v2.8.12, and restart the container:

Code
cd /opt/bentopdf
docker compose pull
docker compose up -d

Because BentoPDF doesn’t store data on the server, nothing will be lost. Remove old images with docker image prune. If a page doesn’t load correctly after the update, clear your browser cache, because BentoPDF stores files there for faster loading.

Using BentoPDF

All tools work the same way: select a file or drag it into the field, set the options, and click the button. Your browser downloads the result directly as a new file.

Common Tools

TaskTool in BentoPDF
Merge multiple PDFs into one fileMerge PDF
Extract pages or split a PDFSplit PDF, Extract Pages
Sort, delete, rotate, or insert pagesPDF Multi Tool, Duplicate & Organize, Rotate PDF
Reduce file sizeCompress PDF
Convert Word, Excel, PowerPoint, or images to PDFWord to PDF, Excel to PDF, PowerPoint to PDF, Images to PDF
Convert a PDF to images, text, or spreadsheetsPDF to JPG, PDF to Text, PDF to Excel
Make scanned pages searchableOCR PDF
Redact, highlight, or comment on contentPDF Editor
Sign or digitally signSign PDF, Digital Signature
Set a password or permissionsProtect PDF, Change Permissions

The names are shown as they appear in the English interface. You can combine multiple steps into a workflow in the PDF Workflow Builder, using your mouse to put it together.

For example, here’s how to merge two PDFs:

  1. Open Merge PDF and select both files or drag them into the field.
  2. If needed, change the order by dragging a file using the handle on the right. In the Pages field, you can select specific pages from each file, for example 1-3, 5. Leave it blank to include all pages.
  3. Click Merge PDFs. Your browser will download the new file.

When compressing, choose the level under Compression Level. The default is Medium (Recommended). In our test, this reduced a PDF with three large images from 13.1 MB to 2.7 MB.

What Happens to Your Files

In our test, we captured all browser requests while merging, compressing, and converting Word to PDF. No file was sent to any server, neither to our own VPS nor to a third party. The requests only loaded program components.

There are still two things to keep in mind:

  • Some processing modules come from an external server. Some tools load their modules from the public jsDelivr service the first time they’re used; in our test, this included the module for merging. According to the project, this also applies to conversions such as PDF to text or Word, and to text recognition. Only program code is transferred, not your file. The One-Click App also calls the GitHub API when the page loads to display the project’s star count in the menu. The bentopdf-simple image used for the manual installation leaves out this counter.
  • Digital signatures with external certificates. If the signature needs to download intermediate certificates from a certificate authority, BentoPDF uses a project proxy that, according to the documentation, only accepts requests from bentopdf.com. This step may therefore fail on your own instance. Simple signatures with Sign PDF and self-signed certificates aren’t affected.

Hide Tools

With the manual installation, you can hide individual tools, for example, if your team shouldn’t use certain features. To do this, create a config.json file in the /opt/bentopdf directory:

Code
{
  "disabledTools": ["edit-pdf", "sign-pdf", "encrypt-pdf"]
}

You can find the tool names in the address bar: for example, merge-pdf is the name for Merge PDF. Add the file to the bentopdf service in the Compose file and restart the container with docker compose up -d:

Code
    volumes:
      - ./config.json:/usr/share/nginx/html/config.json:ro

Hidden tools disappear from the overview, search, and workflow builder and, according to the documentation, can no longer be opened via their address either. This file isn’t available for the One-Click App.

Limitations

  • No accounts or storage: BentoPDF doesn’t have users, history, or a way to store or share files on the server.
  • No API: You use all the tools through the interface. For scripts and automated workflows, a server-side solution such as Stirling-PDF is a better fit.
  • Performance depends on the device: Very large files and Office conversions can take a long time or fail on low-powered devices because the browser doesn’t have enough memory.
  • License: BentoPDF is licensed under AGPL-3.0. Using it with your own team is not a problem. If you want to publicly offer a modified version with your own logo, you must publish your changes or purchase a commercial license from the project.

Conclusion

With BentoPDF, you now have a PDF toolkit at your own address that keeps your files on your device and barely puts any load on your server. To go with it, the guide Set Up Paperless-ngx on a Linux Server shows you how to archive finished documents digitally and make them searchable.

If you have any other questions or need help, our support team is available every day! 🙂

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

The One-Click App is the faster option: BentoPDF is available via HTTPS at your address within minutes, without setting up a reverse proxy or certificate. Manual installation with Docker Compose is a good choice if you want to protect the instance with a Basic Auth password, hide specific tools, or use the streamlined interface without the introduction page.
No. BentoPDF processes files in the browser on your device. The server only delivers the interface and processing modules. In our tests, no files were sent to a server when merging, compressing, or converting Word to PDF. Some processing modules are downloaded by the browser from the public jsDelivr service; only program code is transferred.
No. BentoPDF doesn’t have accounts or sign-in, so the One-Click App doesn’t generate login credentials. Open the app using the access link on its app card. Anyone who knows the address can use the tools, but they can’t see other people’s files.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.