Hi Prakash,
before passing content string to document template, you can change your content sting and remove those unsupported style by replace function
or alternatively you can use new PDF generation module which could give PDF of whole page if that fits into requirement