I am storing TinyMCE body content in database for description, Example:
<p><strong>Hello, World!</strong></p><p style="padding-left: 30px;" data-mce-style="padding-left: 30px;"><em>one </em></p><p style="padding-left: 30px;" data-mce-style="padding-left: 30px;"><em>two</em></p><p style="padding-left: 30px;" data-mce-style="padding-left: 30px;"><em>three</em></p>
Now i want to create pdf of this description with keeping the formatting of text. so whatever output we see after running above code should be present in pdf with same formatting. Pdf generation logic is in java class. So I am getting this description out of database and want to parse with keeping formatting and add it to pdf. I tried using Jsoup parser but it's not applying styles! So is there way to do this?