Awesome
<h1 align="center">Alfred PDF Tools</h1> <p align="center"> <a href="https://github.com/xilopaint/alfred-pdf-tools/releases/latest"> <img src="https://img.shields.io/github/v/release/xilopaint/alfred-pdf-tools"></a> <a href="https://github.com/xilopaint/alfred-pdf-tools/releases"> <img src="https://img.shields.io/github/downloads/xilopaint/alfred-pdf-tools/total"></a> <a href="https://github.com/psf/black"> <img src="https://img.shields.io/badge/code%20style-black-000000"></a> <a href="https://github.com/PyCQA/pylint"> <img src="https://img.shields.io/badge/linting-pylint-yellowgreen"></a> <a href="https://github.com/PyCQA/bandit"> <img src="https://img.shields.io/badge/security-bandit-yellow"></a> <a href="https://www.codacy.com/gh/xilopaint/alfred-pdf-tools/dashboard"> <img src="https://app.codacy.com/project/badge/Grade/3b9d7ae47ec34509a2ba833b0e0d5cc0"></a> <a href="https://www.codacy.com/gh/xilopaint/alfred-pdf-tools/dashboard"> <img src="https://app.codacy.com/project/badge/Coverage/3b9d7ae47ec34509a2ba833b0e0d5cc0"/></a> </p> <p align="center"> <img src="src/icon.png"> </p>Optimize, encrypt and manipulate PDF files using Alfred.
Usage
Alfred PDF Tools can be used through the following file actions:
Optimize
: Optimize the selected PDF files by entering the intended resolution of the output file (150 dpi is used if no value is input) and the document will be improved with increased contrast and straightened text.Deskew
: Straighten the selected PDF files with no further appearance changes.
[!TIP] Invoke Alfred and type the
progress
keyword to track the enhancement process from either of the first two mentioned file actions.
Encrypt
: Encrypt the selected PDF files by entering a password.Decrypt
: Decrypt the selected PDF files by entering their password or just↩
if they're not password protected.Merge
: Merge the selected PDF files. Use the⌘
modifier key if you also want to move the source files to Trash.Split by Page Count
: Split the selected PDF file by page count.Split by File Size
: Split the selected PDF file by file size.Slice in Multiple Files
: Slice the selected PDF file in multiple files by entering page numbers and/or page ranges separated by commas (e.g. 2, 5-8, 20-).Slice in a Single File
: Slice the selected PDF file in a single file by entering page numbers and/or page ranges separated by commas (e.g. 2, 5-8, 20-).Crop
: Convert two-column pages in single pages.Scale
: Scale the selected PDF files to a given paper size.Extract Text
: Extract the text from the selected PDF files.
Contribute
To report a bug or request a feature, please create an issue or submit a pull request.
Credits
This workflow relies on pypdf library by Martin Thoma, docopt by Vladimir Keleshev and K2pdfopt by willus.