Question: I have 2 different pdf plots (generated by matplotlib also) and I'd like to combine them as one side-by-side. Originally I wanted to generate with 2 subplots 121 and 122 but then was too tricky to adjust many details. So I generated two independent plots.

Is there any way to import those ready pdfs and just make one out of them? Because at the end in a latex file which I am using, it is much easier to deal with one figure file rather than two!

Thank you!

Answer: 
If you are on Linux or Mac, the [pdfjam](http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/) program can do it.

```
    pdfjam --nup 2x1 leftFig.pdf rightFig.pdf --outfile combinedFig.pdf

```
I would save the plots as PNGs and then create a PDF out the PNGs using ReportLab. For example:

```
from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import letter

c = canvas.Canvas('report.pdf', pagesize=letter)    

c.drawImage('filename1.png', 0,0)
c.drawImage('filename2.png', 0,100)

c.save() 

```

<http://www.reportlab.com/apis/reportlab/2.4/pdfgen.html>

Or if you're set on merging multiple PDFs than that's already been answered here: [Merge PDF files](https://stackoverflow.com/questions/3444645/merge-pdf-files) or you can merge image directly using PIL see here: [How do you merge images into a canvas using PIL/Pillow?](https://stackoverflow.com/questions/10647311/how-to-merge-images-using-python-pil-library).