PDFTK

    Example

    pdftk A=doc1.pdf B=doc2.pdf cat A1-4 A5 B1-end A6 output out.pdf