HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › font-size=x-large › Re: Re: font-size=x-large
Thanks for the reply and sorry about the typo.
Here is a test case<br />
<html><br />
<head><br />
<style><br />
<br />
.problem_style p, span {<br />
font-size: inherit;<br />
}<br />
<br />
</style><br />
</head><br />
<br />
<body><br />
<br />
<div><br />
<span style="font-size: xx-large;"><br />
<span style="text-decoration: underline;"><br />
<em><strong>456</strong></em><br />
</span><br />
</span><br />
</div><br />
<br />
</body><br />
</html><br />
Converting this to PDF will lose the font size. Through trial and error I found two tweaks can work around the problem
1. remove the problem_stype
2. swap the order of the two spans, i.e. <br />
<span style="text-decoration: underline;"><br />
<span style="font-size: xx-large;"><br />
Unfortunately, I do need the style for the page, and the content is created from a 3rd party rich text editor. Therefore I could use neither work-around.
Do you have any suggestions how I can make this work?
Again, thanks in advance for any tips.
— jerry