F
F
Fedor Doronin2020-05-28 20:56:14
Python
Fedor Doronin, 2020-05-28 20:56:14

Python3 save image by url. I'm given a list of links as input and I need to add. them to my PDF file, how?

for link in links:
        '''
        img = requests.get(link)
        img.save()
        p.drawInlineImage(img, 0, 0)
        '''
        urlretrieve(link, "img.png")
        p.drawInlineImage("img.png", 0, 0)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
a, 2020-05-28
@Fedor11

PyPDF2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question