What it never does
Run a script
Pagebara has no JavaScript engine. Scripts in a PDF are listed in the report and never run. The usual form calculations and number formats run as Pagebara's own code.
Open a link by itself
A web link opens in your browser after you confirm it, and the confirmation shows the real address. Local paths, custom protocols and addresses with sign-in details are blocked.
Open another file or program
Links to other files, launch actions and media actions are not followed.
Open an attachment
Attached files are read only to check them. Pagebara does not open or run them.
Upload your file
Every check runs on your device. The optional malware scan uses ClamAV on your device too.
When a PDF opens
The Document security check runs by itself on every PDF as it opens, before you see the first page. A password-protected PDF is checked once you unlock it. The shield beside Save shows the result, and choosing it opens the report.
Green shield
Checked, and nothing suspicious was found.
Orange shield
Something was blocked or needs a look: a script, an automatic action, a blocked link, an attachment named like a program, a check that could not finish, or a skipped scan. A strip over the page says what happened.
Red shield
ClamAV matched a malware signature in this PDF.
Plain shield
Still checking.
The report has one line for each part of the check:
Scripts
Each piece of JavaScript and when it would run: as the PDF opens, when a page opens, on a click, before printing or saving, as a form field is typed in.
Actions
Requests to open a website as the PDF opens, to open other files, to send form data or to play media.
Links
How many web addresses the PDF links to, and any link with an address Pagebara will not open.
Attachments
How many files are attached, and any named like a program or a script, such as .exe, .js or .command.
Malware scan
Whether ClamAV scanned the file and what it found. It is optional, and the line says when ClamAV is not running.
The malware scan
If ClamAV runs on your device, Pagebara can send it a PDF, or the files attached to one, and show what it found. Turn on Scan PDFs with local ClamAV before opening in Settings, System, and a file that matches a signature is blocked before Pagebara reads it. Files over 32 MiB are not scanned whole, and the report says so.
Pagebara connects to 127.0.0.1 on port 3310, or to the port in PAGEBARA_CLAMD_PORT, or to the Unix socket in PAGEBARA_CLAMD_SOCKET. Setting up ClamAV takes a few commands on macOS, Linux and Windows.
What a check cannot tell you
The checks read what a PDF asks for and what it contains. They cannot tell whether a website is safe, and ClamAV finds known malware, not all of it. A very large or damaged file can reach the check's limits; the report then says the check is incomplete instead of calling the file clean.
The code that reads PDFs is Pagebara's own, in safe Rust, and is fed malformed files by 20 fuzz targets, because every PDF from the internet is untrusted data.
Something look wrong?
If Pagebara missed something, or warned about a file you trust, tell us on Discord or at [email protected]. Please do not send a file you are not allowed to share; a description of what it does is enough to start.