I have some pdf files which are uploaded on a remote server. I have URL for each file and we can download these PDF files by visiting those URLs.
My question is,
I want to merge all pdf files into a single file (but, without storing these files into local directory). How can I do that (in python module 'PyPDF2')?
Please move to
pypdf. It's essentially the same asPyPDF2, but the development will continue there (I'm the maintainer of both projects).Your question is answered in the docs:
Instead of writing to a file, you write to
io.ByteIOstream: