PDF Toolkit
Merge, split, reorder, rotate, compress, stamp, number, encrypt and fill PDF forms, offline.
Install
irm https://raw.githubusercontent.com/chayprabs/localtools/main/pdf-toolkit/install.ps1 | iexlocaltools-pdf-toolkit updatelocaltools-pdf-toolkit uninstall
curl -fsSL https://raw.githubusercontent.com/chayprabs/localtools/main/pdf-toolkit/install.sh | bashlocaltools-pdf-toolkit updatelocaltools-pdf-toolkit uninstall
brew install chayprabs/localtools/localtools-pdf-toolkitbrew upgrade localtools-pdf-toolkitbrew uninstall localtools-pdf-toolkit
scoop bucket add localtools https://github.com/chayprabs/homebrew-localtools; scoop install localtools-pdf-toolkitscoop update localtools-pdf-toolkitscoop uninstall localtools-pdf-toolkit
winget install localtools.PdfToolkitwinget upgrade localtools.PdfToolkitwinget uninstall localtools.PdfToolkit
Opens at http://127.0.0.1:47102 in your browser. Run localtools-pdf-toolkit --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.
Direct download
| Platform | File | Size |
|---|---|---|
| Windows x64 | pdf-toolkit-1.0.7-windows-x64.zip | 5.5 MB |
| macOS Apple Silicon | pdf-toolkit-1.0.7-macos-arm64.zip | 4.9 MB |
| macOS Intel | pdf-toolkit-1.0.7-macos-x64.zip | 5.4 MB |
| Linux x64 | pdf-toolkit-1.0.7-linux-x64.zip | 5.3 MB |
| Linux ARM64 | pdf-toolkit-1.0.7-linux-arm64.zip | 4.8 MB |
SHA-256 checksums are in the release notes; the install scripts verify them for you.
See it
How to use
- Open PDF Toolkit (it starts at http://127.0.0.1:47102).
- Pick the operation: Merge, Split, Pages, Rotate, Compress, Stamp, Numbers, Encrypt, Decrypt, Metadata or Forms.
- Drop your PDF (several for Merge, then order them and set page ranges per file).
- Set the options shown for that operation and press the button.
- Check the page count and size, then download the result. From a terminal: localtools-pdf-toolkit merge a.pdf b.pdf -o out.pdf.
FAQ
Does compress really make files smaller?
Lossless mode removes duplicate and unused objects, which helps on bloated files but not on tight ones (the original is returned if nothing smaller is found). Medium and strong also downsample large photos and re-encode them as JPEG, which is where most of the size goes: a photo PDF went from 1.7 MB to 246 KB in testing. Line art, screenshots, CMYK and 1-bit images are left untouched.
How do I fill a PDF form automatically?
Run localtools-pdf-toolkit export form.pdf > data.json to get every field with its current value, edit the values, then localtools-pdf-toolkit fill form.pdf data.json -o filled.pdf. XFDF and FDF files exported from Acrobat work too, and --flatten bakes the values into the page.
Which encryption does it use?
AES-256. Where the file can be written as PDF 2.0 it uses the PDF 2.0 standard handler (revision 6); otherwise the older AES-256 scheme (revision 5), and the result tells you which. You can set a password to open the file, an owner password, and whether printing, copying, commenting and editing are allowed.
Can it handle large files?
Yes, up to about 400 MB in the app. A 1200-page PDF rotates in under a second and a 200 MB file in about 1.5 s. The whole document is held in memory (about 5x the file size at peak), each job may use up to 2 GiB, and at most two jobs run at once.
Are my PDFs uploaded?
No. The page only talks to the local server on 127.0.0.1, the tool makes no network requests, and uploaded files are deleted as soon as each request finishes.