We use WPTools5 extensively in our applications. For the most part it is very good, excellent in fact, but of course occasionally we have a foible to contend with. This is one.
Our application occasionally saves user generated HTML to a PDF file. We have partial control of the resulting format. This works well until a bold Lucida Console segment is called.
Zitat von Original HTMLAlles anzeigen
<html>
<head>
<title>
??? Document
</title>
</head><style type="text/css">
.freeText {
align: center;
padding: 0.5em 2%;
<!-- define "Lucida Console" so problem occurs -->
font-family: "Lucida Console","Courier New",Courier,monospace;
font-size: 1.1em;
white-space: pre; /*HTMLViewer ignores this*/
}
}</style><table border="0" cellspacing="0" width="600"><tr><td colspan="5" class="resultsHeader">Consultation Note (M XXXXX) (Result has been updated since first viewed)<a href="hint=ID:+11488-4^LN" class="ReportTitle"></a></td></tr><tr class="oddFT" >
<!-- problem occurs here -->
<td colspan="5" class="freeText">test <b>test</b></td>
</tr></table>
</body>
</html>
the problem is that <b>test</b> is rendered into a strange font smaller than the non-bold font. It looks like the font has been compressed vertically.
I can send you the output PDFs if desired.
Anyhow a workaround seems to be to remove "Lucida Console" from the CSS and replace it with Consolas.
Zitat von HTML to PDF works well with these changesAlles anzeigen
.freeText {
align: center;
padding: 0.5em 2%;
font-family:Consolas,"Courier New",Courier,monospace;
font-size: 1.1em;
white-space: pre; /*HTMLViewer ignores this*/
}
As this may affect a lot of applications we would prefere not to change the font