views:

97

answers:

2
+1  Q: 

Merge PDF files

Hi all,

I did a search and nothing really seemed to be directly related to this question. Is it possible, using Python, to merge seperate PDF files?

Assuming so, I need to extend this a little further. I am hoping to loop through folders in a directory and repeat this procedure.

And I may be pushing my luck, but is it possible to exclude a page that is contained in of the PDFs (my report generation always creates an extra blank page).

Many thanks in advance.

+2  A: 

do you have to use python? if you just need to merge your pdfs, i'd have a look at pdftk

second
+5  A: 

Use Pypdf:

A Pure-Python library built as a PDF toolkit. It is capable of:
* splitting documents page by page,
* merging documents page by page,

(and much more)

Gilles
Wow, that couldn't have been more straight forward. Thx
Btibert3