docx-templates icon indicating copy to clipboard operation
docx-templates copied to clipboard

Use non Integer values on image sizes

Open LuisSevillano opened this issue 5 years ago • 0 comments

First of all, thank you for this awesome library! It is helping me a lot in a printing module (browser usage).

That module prints bills/licenses and I'm facing some issues when trying to put images of specific sizes inside one of that documents.

As docx-templates use an HTMLImageElement, just non negative integers can be used as values for width and height attributes. This matter limits a lot the posibilites of place an image within the document.

Does anyone know any way to deal with it? Does someone comes up with how decimal values could be used setting the sizes of an image?

Thanks in advance

LuisSevillano avatar Nov 05 '18 11:11 LuisSevillano