Those can be obtained using the Python Image Library (PIL) library for example, as follows: thon from PIL import Image image = Image.open( "name_of_your_document - can be a png, jpg, etc.