I saw this answer: https://superuser.com/a/598688/130929
But it was for files with the same number of pages. I have a PDF with 744 addresses and I have a single page letter for the contents which is the same. I would like to merge them to get a 1488 page PDF file so I can print it double-sided and the address will be on one side and the letter will be on the other side. How can I do this with pdftk?
The help says it will stop using a document if the pages runs out.
shuffle [<page ranges>]
Collates pages from input PDFs to create a new PDF. Works
like the cat operation except that it takes one page at a
time from each page range to assemble the output PDF. If one
range runs out of pages, it continues with the remaining
ranges. Ranges can use all of the features described above
for cat, like reverse page ranges, multiple ranges from a
single PDF, and page rotation. This feature was designed to
help collate PDF pages after scanning paper documents.
I think
pdftk A=addresses.pdf B=letter.pdf shuffle A B B B B B B B B B B B...x744 output collated.pdf
Might work, but that seems unwieldy. Maybe if I could duplicate the letter page 744 times, then shuffle collate them, that might also work.