Skip to content

Embed a pdf as background or watermark and place it on each page of another pdf

License

Notifications You must be signed in to change notification settings

intra2net/pdfwatermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pdfwatermark

Embed a pdf as background or watermark and place it on each page of another pdf.

How to use

pdfwatermark.py watermark.pdf source.pdf output.pdf

This puts the content of the first page of watermark.pdf in the background of each page of source.pdf. The merged data is written into output.pdf.

Dependencies

Reason for development

Previously we used PDFtk https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ for this task. But PDFtk relies on gcj which was deprecated for a long time and is not easily available on current distributions anymore.

So I was looking for a replacement. There are some tools offered as replacement for PDFtk, but most of them don't offer a equivalent of the pdftk "background" command.

Mcpdf offers it, but requires iText which is not easily available on CentOS 7. Adding a background in QPDF is possible, but not easily scriptable.

Alternatives

License

MIT X11 License

About

Embed a pdf as background or watermark and place it on each page of another pdf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages