1

I've 2 A4 pages from pdf.

The first one contain the "content" of the page and second contain header and footer.

Is it possible via command line to merge the content of these 2 pdf pages into a new single one that contains all the element of the 2 pages ?

Coucout
  • 153

2 Answers2

2

You can use the watermark command from HexaPDF for this:

$ hexapdf watermark -w header_footer.pdf content.pdf output.pdf
gettalong
  • 186
0

Thanks to gettalong, I've found the tool qpdf to make this, referenced in this post : https://superuser.com/a/1640241/696066

qpdf --overlay overlay.pdf --repeat=1 -- input.pdf output.pdf
Coucout
  • 153