wordinator icon indicating copy to clipboard operation
wordinator copied to clipboard

Ability to include attachments in DOCX output with URL or Base64 encoded file

Open CallumES opened this issue 2 years ago • 2 comments

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:

  1. 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"
  2. 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.

CallumES avatar Aug 30 '22 09:08 CallumES

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 avatar Sep 04 '22 19:09 drmacro

@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.

CallumES avatar Sep 06 '22 11:09 CallumES

Released and verified.

drmacro avatar Dec 11 '22 18:12 drmacro