Welcome Guest Search | Active Topics | Sign In | Register

Font not correct when converting HTML to PDF Options
Bernhard Kaufmann
Posted: Monday, October 7, 2013 2:27:48 PM
Rank: Newbie
Groups: Member

Joined: 3/22/2013
Posts: 6
Code: C#

Hi,

Have using Html2PDF, but facing issue with fonts as the Fonts in html are not getting written well in terms of both font as well as size. It getting some default PDF font with much much smaller size. Have sample html which I wanted to convert, but not getting the desired results. Please let me know if any additional options need to be set.

Thanks
eo_support
Posted: Monday, October 7, 2013 2:34:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

These are two different things: font and font size. So you can try to troubleshoot them separately.

If the converter does not use the font you specified, check whether the font is a true type font, and whether the font is installed on your server. For example, if you run the converter on your web server but your web server does not have that font installed, then it won't work ---- even if your client machine has the font installed and can display the font perfectly fine in your browser.

Once you get the font working, you can troubleshoot font size. Most of the time the font is small is because the converter auto-scaled the result, not because it did not recognize your font size settings. You can find more information about auto scale here:

http://www.essentialobjects.com/doc/4/htmltopdf/auto_fit.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.