wordinator
wordinator copied to clipboard
Ability to include attachments in DOCX output with URL or Base64 encoded file
At present, images appear to need to be stored at the same location/server from which the Wordinator is running from, i.e. src="file:/Users/ekimber/workspace/wordinator/src/test/resources/html/images/picture-of-something.jpg" when they are referenced.
It is not possible to specify either:
- An absolute URL, i.e. src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/1200px-Google_2015_logo.svg.png"
- The base-64 encoded contents of the file itself, i.e. src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASAB..." to have used in the DOCX output.
Please could the support of both of these attachment provision methods (URL and base64 encoded file) be looked at for inclusion in the Wordinator tool.
I assume the use case here is processing existing HTML that points to images at some web location, as opposed to HTML generated specifically for the purpose of generating Word.
@drmacro Generally speaking, yes, however both will be possible use cases. We'd like to be able to specify the image in the HTML, either by URL or base64 encoded contents, without needing to provide a live filepath link to the image file on the server.
Released and verified.