[Linux-disciples] Merging two .pdf or .docs for duplex printing

Karl Sokol revkarl at gmail.com
Fri Oct 17 14:45:49 EDT 2008


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` output combined.pdf

Beautiful!  It worked like a charm.  You have saved me hours of dealing with
jammed paper!  If ever I am in Boston and you need your house painted...



On Fri, Oct 17, 2008 at 2:54 AM, Dylan Thurston <dpt at math.columbia.edu>wrote:

> 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
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples
>



-- 
Grace and Peace,

Rev. Karl Sokol
Franklin Grove UMC
211 N. Spring
Franklin Grove, IL 61031

FranklinGroveUMC.com

"Give me one hundred preachers who fear nothing but sin and desire nothing
but God, and I care not whether they be clergymen or laymen, they alone will
shake the gates of Hell and set up the kingdom of Heaven upon Earth".

                                       -- John Wesley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20081017/f65e13db/attachment.htm 


More information about the Linux-disciples mailing list