Aymkdn / html-to-pdfmake

This module permits to convert HTML to the PDFMake format
https://aymkdn.github.io/html-to-pdfmake/index.html
MIT License
545 stars 88 forks source link

Bugfix and id option #180

Closed nerdess closed 1 year ago

nerdess commented 1 year ago
  1. bugfix

HTML like this lead to an error because pdfmake does not allow width or height to be "auto" or "100%".

<img src="http://test.gif" style="width: 100%; height:auto;" />

  1. feature

added option "id", please check README for usage of this.

Aymkdn commented 1 year ago

added option "id", please check README for usage of this.

The random string already does that. You just need to call a new instance of html-to-pdfmake. See this thread: https://github.com/Aymkdn/html-to-pdfmake/pull/177

I'm adding the width and height in v2.4.19