Skip to content

Simple Python Script to Add Watermarks to PDFs via NextCloud Workflows

License

Notifications You must be signed in to change notification settings

AkaBlas/nc-watermark-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nc-watermark-pdf

Simple Python Script to Add Watermarks to PDFs via NextCloud Workflows.

It implements two ways of adding watermarks to PDFs:

  1. Using PyPDF. This is a pure Python solution, which has its benefits, but is also rather slow.
  2. Using markpdf. This is a GO binary, which is much faster, but requires the binary to be installed on the system.

The script runs on Python >= 3.9. Call it as

python script.py --event_type %e --file_id %i --actor_user_id %a --owner_user_id %o --nextcloud_relative_path %n --locally_available_file %f --old_nextcloud_relative_file_path %x

in the workflow specification.

Paths are currently hard-coded and may need to be adjusted for other setups.

About

Simple Python Script to Add Watermarks to PDFs via NextCloud Workflows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages