[Linux-disciples] Merging two .pdf or .docs for duplex printing
Dylan Thurston
dpt at math.columbia.edu
Fri Oct 17 03:54:05 EDT 2008
On Thu, Oct 16, 2008 at 03:06:28PM -0500, Karl Sokol wrote:
> Thanks. I have been having fun with pdftk. However, I am still a little green
> to even basic command line commands.
>
> doc-a.pdf has 100 pages. doc-b.pdf has 1 page. I want the combined document to
> look like a1,b1,a2,b1,a3,b1,a4,b1... In other words, combined.pdf should be
> 200 pages long.
>
> I am sure this is basic, but I can't find an example of this in man files or
> online tutorials.
It doesn't look like this is standard, but it's easy to simulate:
pdftk A=doc-a.pdf B=doc-b.pdf cat `for (( i=1; i <= 100; i=i+1 )); do printf "A%d B1 " $i; done`
Peace,
Dylan
More information about the Linux-disciples
mailing list