stapler icon indicating copy to clipboard operation
stapler copied to clipboard

Add multibackground feature

Open gsauthof opened this issue 7 years ago • 2 comments

The pdftk tool has this multibackground feature for merging (i.e. not concatenating) 2 PDF files.

Besides adding a real background to a PDF this is also useful for adding a text layer to a PDF (where the text layer PDF comes from an OCR program like tesseract).

Example:

pdftk images.pdf multibackground ocr-textlayer.pdf output document.pdf

Thus, it would be great if stapler would add such an operation, as well.

gsauthof avatar Apr 27 '18 20:04 gsauthof

See also pdfmerge.py as a proof-of-concept how to do this with PyPDF2.

gsauthof avatar May 01 '18 13:05 gsauthof

Thanks. That sounds very useful! I'll check out your proof of concept.

hellerbarde avatar Feb 19 '20 00:02 hellerbarde