Creates watermark in pdf and makes protection from editing.
- apt-get install pdftk python3 python3-pip
- pip3 install -r requirement.txt
python3 ./pdf-watermark.py -w 'File owner Ilya Khramtsov' -i test.pdf
-i If the file is not specified, will deliver the watermarks to all pda files in the current directory.
- POSITION = 'bottom-middle' # Расположение
- pdfmetrics.registerFont(TTFont('FreeSans', 'FreeSans.ttf')) # Название шрифта и название файла шрифта
- FONT_SIZE = 12 # Размер шрифта
- FONT_COLOR = '#cccccc' # Цвет шрифта
- VALIDATE = 'trustworthy'
- PREFIX = 'my'
- SECURE_NAME = 'TK_' # Имя файла после установки пароля
- OWNER_PASS = '333' # Пароль на редактирование