title: How can I combine two PDF pages show up on the same page?
body: <p>I am looking for a free tool that allows re-arranging pages of a PDF document and combining multiple pages per sheet. The first part (re-arranging) is easily solved by many tools (I use <a href="http://pybrary.net/pyPdf/" rel="noreferrer">PyPDF</a>). </p>
  
  <p>The problem is with the second requirement: to combine two (or more) pages into single page. For example, take two pages (A and B), rotate them, scale and combine into a single page like this</p>
  
  <pre><code>------       ------            ------
  |     |      |      |          |     |
  |  A  |      |  B   |          | a   |
  |     |      |      |          |     |
  |     |      |      |  ---&gt;    ------
  |     |      |      |          |     |        
  |     |      |      |          | b   |        
  |     |      |      |          |     |        
  ------       ------            ------
  </code></pre>
  
  <p>The solution needs to work on Linux and preferably on Windows too. I'm looking for either console application or library with Python or Perl bindings.</p>
  
  <p><strong>Edit</strong> there is <a href="http://pypi.python.org/pypi/pdfnup/0.3.3" rel="noreferrer">pdfnup</a> library that is supposed to perform exactly this kind of transformation, and is cross-platform, however I cannot use it due to a bug similar to <a href="http://two.pairlist.net/pipermail/reportlab-users/2008-December/007819.html" rel="noreferrer">this</a>.</p>