PyPDF2 merge / out of memory

Mark Lawrence breamoreboy at
Sun Feb 21 06:11:51 EST 2016

On 21/02/2016 10:41, cpoline95 at wrote:
> Hello,
> There is an issue with PyPDF2 and merging file
> Does anybody know an alternate library to merge PDF and produce optimized pdf file ?
> Thanks a lot
> Clement

I did a bit of searching and found, which on pypi is described as:-

A top notch PDF library for PDF rendering, conversion, content 
extraction, etc

PDFNet SDK is an amazingly comprehensive, high-quality PDF developer 
toolkit for working with PDF files at all levels. Using the PDFNet PDF 
library, developers can create powerful PDF solutions and applications 
that can generate, manipulate, view, render and print PDF documents on 
Windows, Mac, and Linux.

There's also which states it's a

This package (xtopdf) contains tools to convert various file formats 
(collectively called x) to PDF format.

Vasudev Ram I know does a lot of work with PDF so a further search 
throws up articles on using his code, including some recipes on Activestate.

Note I've used none of these myself, I just HTH.

My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

More information about the Python-list mailing list