2

I have n PDFs in a folder. Each PDF contains only one small figure. I want to combine all of these onto one page, one on top of the other. I want to be able to specify just the directory that the PDFs are in and let LaTeX assemble them. It would be even better if I could call this from the command line so I didn't have to open my editor. My situation is like this one (at least the asker's pseudo code is exactly what I had in mind) but I can't understand the answer enough to make it work for combined PDFs.

If it makes it any easier, I could pass in the exact PDF file paths as arguments instead of just the directory. Both approaches are fine with me.

Thanks.

  • pdfjam can be really helpful (if you are in Linux or Mac). Take, for example, a look at http://stackoverflow.com/questions/25451348/matplotlib-merge-2-pdfs-to-one-side-by-side – boumol Jan 22 '16 at 14:27
  • I'm on windows. I had seen that other post and tried that method but gave up after I couldn't figure out the error produced by pdfjam (via msys2). I then thought it would be easier to use LaTeX. It seems folks think the pdfjam method so I think I'll just have to figure that out. Thanks for the help. – Phlox Midas Jan 22 '16 at 15:36
  • You can also try to use pdfnup https://pypi.python.org/pypi/pdfnup I suppose that this should work on windows – boumol Jan 22 '16 at 15:57
  • please use @name to ping users – touhami Jan 23 '16 at 09:04