I would like to find the best (most efficient and most reliable) solution to do the following:
- I have one big PDF page A (let's say with 1000 pages)
- I have another PDF page B (smaller, let's say 2 pages)
- I want to merge PDF B into PDF A after every n-th (let's say after every second) page of A
Is there a Linux tool which supports this in a easy to use param syntax (like giving a param '-merge-after-every 2')?
Maybe other alternative solutions/approaches?
I tried pdfsam, but it seems that you need to pass in a very long param list with the explicit page sequence. Also, pdfsam dies with a stackoverflow exception on my machine when you want to merge a PDF page after every page of 1000 pages PDF (it works for smaller page sizes of file A).