docx-templates
docx-templates copied to clipboard
Use non Integer values on image sizes
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