Offline PDF tools for Windows and macOS. Merge PDFs, take pages out, rotate or delete pages, and remove a PDF's metadata, without uploading your documents to a website. It works without internet; your files stay on your computer. The interface is in English and Arabic.
| Tool | What it does |
|---|---|
| Merge | Pick several PDFs, put them in order with the up and down buttons, and join them into one new PDF. |
| Split / extract | Type pages such as 1-3, 5, 8- and save them as one new PDF, or save each page as its own file in a folder. |
| Rotate and delete | Rotate chosen pages by 90, 180 or 270 degrees and remove chosen pages; the result is a new PDF. |
| Info and clean | Shows the page count, page sizes, whether the file is encrypted, and its metadata (title, author, the software that made it, dates, XMP). Saves a copy without the document information and XMP metadata. |
Every screen shows the page count of a file as soon as you pick it.
Page numbers start at 1, as in a PDF viewer. 8- means page 8 to the
end, -3 means pages 1 to 3. Pages are saved in the order you type them, so
3, 1-2 puts page 3 first. A page that does not exist, a backwards range such
as 5-3, or anything that is not a page number is refused with a message;
nothing is written. Arabic-Indic digits (١-٣) and the Arabic comma work too.
Password-protected PDFs. If a PDF needs a password to open, leafpress says so and asks you to type it. The password is used only to open the file, is kept in memory until you close the window, and is never saved. leafpress never tries to guess or break a password. The new files it writes have no password, and the app tells you so. A PDF that is encrypted but opens without a password (it only restricts printing or copying) is opened without asking.
Your files are never changed. Every tool writes a new file. By default it
goes next to the original, for example report.pages.pdf, report.merged.pdf,
report.edited.pdf or report.clean.pdf; if that name is taken, leafpress adds
(2). It replaces an existing file only when you choose that file in the save
dialog yourself, and never the file you are working on. It does not delete
anything.
The Info and clean screen lists what a PDF records about itself before you decide to remove it:
The whole interface is available in English and Arabic; switch with the English / العربية buttons at the bottom of the sidebar. In Arabic the layout runs right to left, and messages, counts and errors (including page-range errors) are in Arabic. File names, paths and page lists stay left to right. leafpress starts in Arabic when your system language is Arabic, and remembers your choice.
واجهة leafpress متاحة بالكامل بالعربية: اختر «العربية» أسفل الشريط الجانبي.
- No OCR. It cannot make scanned pages searchable or read text from images.
- No compression. It does not shrink images or make files smaller.
- No text editing. It cannot change, add or redact the words on a page.
- No signatures. It cannot sign PDFs or check signatures. Changing a signed PDF breaks its signature.
- No passwords added. It cannot protect a PDF with a password.
- Cleaning removes metadata only. Text, images, comments, form fields, attachments and hidden layers stay in the copy as they are. Metadata can also be inside images (for example camera data in a photo); that stays too.
- Bookmarks and links usually survive merging and rotating; extracting and splitting pages keeps the pages only. Unusual or damaged PDFs may not open; leafpress then says the file could not be read.
leafpress uses pypdf for all PDF work.
From the latest release:
-
Windows 10 and 11:
leafpress-windows.exe. Double-click it. Windows SmartScreen may say it protected your PC, because the app is not signed: choose More info, then Run anyway. The window uses Microsoft Edge WebView2, which Windows 10 and 11 already have. If Smart App Control is on (Windows 11: Windows Security → App & browser control), it blocks unsigned apps outright and offers no Run anyway. The app is not code-signed yet, so with Smart App Control on, use Run from source instead. -
macOS (Apple silicon, M1 and later):
leafpress-macos-apple-silicon.zip. -
macOS (Intel):
leafpress-macos-intel.zip.Unzip it and move
leafpress.appto Applications. The app is not notarised by Apple, so the first time macOS refuses to open it: open System Settings → Privacy & Security, scroll down and click Open Anyway (on older macOS, right-click the app and choose Open).
Every build is made from this repository by GitHub Actions, and the release page lists which commit it came from.
Python 3.10 or newer:
pip install "leafpress[window] @ git+https://github.com/RealAoss/leafpress"
leafpress
Without pywebview (or with leafpress --browser) the same page opens in your
default browser, served from 127.0.0.1 only. A browser page cannot show the
system's file dialogs, so there you type or paste the full path of each file.
That local server answers only requests that carry a random token made for
each run, so other web pages cannot use it.
pip install . "pywebview>=5" "pyinstaller>=6.10"
pyinstaller packaging/leafpress.spec
The result is dist/leafpress.exe on Windows and dist/leafpress.app on
macOS. PyInstaller does not cross-compile: build the Windows app on Windows and
the macOS app on a Mac. Tests: python -m unittest discover -s tests.
This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it.
PDFs are read from and written to your disk only where shown in the app. Passwords you type stay in memory and are gone when you close the window.
The only network request leafpress can make is the update check, and only
when you click Check for updates. It asks GitHub for the latest release
(GET https://api.github.com/repos/RealAoss/leafpress/releases/latest). It
sends nothing but that request itself, with the app's version in the
User-Agent header (for example leafpress/0.2.0); no file names, no
documents, no identifiers. Nothing is sent when the app starts. If a newer
version exists, a link opens the release page in your browser when you click
it.
leafpress is not installed into the system and changes no system settings.
- Windows: delete
leafpress-windows.exe. - macOS: drag
leafpress.appfrom Applications to the Trash. - From source:
pip uninstall leafpress.
MIT



