How to add images to a pdf

broken image
broken image

Then simply do: images = convert_from_path ( '/home/belval/example.pdf' )

broken image

If they are not installed, refer to your package manager to install poppler-utils Platform-independant (Using conda) Most distros ship with pdftoppm and pdftocairo. Mac users will have to install poppler for Mac. You will then have to add the bin/ folder to PATH or use poppler_path = r'C:\path\to\poppler-xx\bin' as an argument in convert_from_path. I recommend version which is the most up-to-date. Windows users will have to build or download poppler for Windows. A python (3.6+) module that wraps pdftoppm and pdftocairo to convert PDF to a PIL Image object How to install