I have a docxtpl document, but I need to add images to the InlineImage from a url, not local disk.
I'm using Django
So this works (document is a DocxTemplate):
InlineImage(document,'C:/Users/sande/Pictures/myimage.png')
But how do i do this?:
InlineImage(document,'https://files-cdn.myhost.net/3255/ddef9d07-0a6b-4f54-801a-c016e6d41885/myimage.png')
the image_descriptior doesn't accept a url.:
Exception has occurred: OSError [Errno 22] Invalid argument:'https://files-cdn.myhost.net/3255/ddef9d07-0a6b-4f54-801a-c016e6d41885/myimage.png'