Skip to main content

CLI utility to remove PII watermarks from pdfs downloaded from Move USP/ESALQ

Project description

Move Unmarker

Very small CLI utility to remove PII watermarks from pdfs downloaded from Move USP/ESALQ, using PyMuPDF.

Installation

  1. Make sure Python 3.8 or higher and pip are installed
  2. Run pip install move-unmarker

Usage

usage: unmarker [-h] [-o OUTPUT] [-g GARBAGE] input

Utility to remove PII watermarks from pdfs downloaded from Move USP/ESALQ.

positional arguments:
input                   input filename

options:
-h, --help              show this help message and exit
-o OUTPUT, --output OUTPUT
                        output filename (default: unmarked.pdf)
-g GARBAGE, --garbage GARBAGE
                        level of garbage collection (default: 1)  

pymupdf.Document.save method for more details on garbage collection.

TLDR

  • unmarker watermarker.pdf
  • unmarker -o unmarked.pdf watermarked.pdf
  • unmarker --garbage 3 watermarked.pdf

Development

  1. Check Python's version python -V

  2. Install Python 3.8 or higher and pip, if they aren't already installed:

    • Windows winget install Python.Python.3.X (replace X with the desired minor version)
    • Ubuntu/Debian based distros apt install python3 python3-pip
    • Arch based distros pacman -S python python-pip
    • Fedora dnf install python3 python3-pip
  3. Install poetry

  4. Clone this repo
    git clone https://github.com/joaofauvel/move-unmarker.git && cd move-unmarker

  5. Install requirements
    poetry install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

move_unmarker-0.1.2.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

move_unmarker-0.1.2-py3-none-any.whl (15.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page