I am trying to generate pdf for saved questions & pretty much we have successfully implemented it using XPATH i.e \'//math\' to extract all math tags from existing Html