Hi, Sathish!
My component was not made for html2pdf, but to export PDF by browser directly.
The Wkhtml that is used to generate PDF not support a lot of CSS advanced I used in my component.
The good new is that I'm developing an update for my component to include an embed DLL to export and with that a support to a new CSS to adapt the page size.
If you can't wait for that, you can try change a little bit of my CSS code (where I use cm instead px). Try to put a smaller size or %.
Other hint is:
"-T 0 -R 0 -B 0 -L 0 -s A4 --print-media-type --disable-smart-shrinking --no-stop-slow-scripts"
Remove that code part that prevent background color in elements
--no-background
And add this to prevent errors with many pages:
--no-stop-slow-scripts