Hi,
I have the following test html:
Quote:<!DOCTYPE html>
<html style="height: 100%;" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="test5.css" rel="stylesheet" type="text/css">
</head>
<body style="height: 100%; margin: 0px;">
<table border="1" style="page-break-inside: avoid; page-break-after:always; border-collapse: collapse;height: 1116px; width: 100%"><tr><td><div class="test">Full Height Test Page 1</div></td></tr></table>
<table border="1" style="page-break-inside: avoid; border-collapse: collapse;height: 1116px;"><tr><td>Full Height Test Page 2</td></tr></table>
</body>
</html>
with the following in my css:
Quote:@font-face
{
font-family: 'AvantGarde Md BT';
src: url('/includes/avgardm.ttf') format('truetype');
}
.test {
font-family: 'AvantGarde Md BT';
font-size: 27pt;
font-weight: bold;
text-align: right;
}
'Full Height Test Page 1' as AvantGarde Md BT is displayed correctly in a browser, however it isnt rendered correctly when converted from html to pdf.
When I look at the font in the created pdf, I see the following where AvantGarde Md Bt should be:
Ms1vzQMek0GWeuqlVAfYuA==
If I remove the following lines from the css
Quote:@font-face
{
font-family: 'AvantGarde Md BT';
src: url('/includes/avgardm.ttf') format('truetype');
}
The AvantGarde Md BT is displayed correctly in the html to pdf conversion as it gets the font which is installed on my computer.
This isn't a major problem for me at the moment as I will just use a different css for the pages that are converted into pdf's, however it seems like a bit of a bug?
Thanks
Julian