Rank: Newbie Groups: Member
Joined: 1/21/2015 Posts: 2
|
Hello there,
I'm converting an HTML document to PDF and certain special characters (such as - ' ") are being output as characters looking like a question mark inside a black diamond. The font used in the source HTML page isn't anything special (Times New Roman) and when I view the properties of the PDF and look at the "Fonts" tab, Times New Roman shows up on the list like this:
Times New Roman (Embedded Subset) Type: TrueType (CID) Encoding: Identity-H
There are identical entries for: "Times New Roman, Bold" "Times New Roman, BoldItalic" "Times New Roman, Italic"
I read a bit of the documentation on styles and whatnot, but considering it looks like the fonts are included as embedded in the final PDF, I don't believe it would help.
Thanks for any help. Love the product!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi, Thanks for posting in the forum. The most likely reason for this is the actual font in your HTML file is actually not Times New Roman. If you can isolate the problem into a test HTML file and send us the test file, we will be very happy to investigate further. Please see here for more information on how to send a test file/project to us: http://www.essentialobjects.com/forum/test_project.aspxThanks!
|
Rank: Newbie Groups: Member
Joined: 1/21/2015 Posts: 2
|
I figured it out. It wasn't a font issue, it was an encoding issue. Once I explicitly set it to encode the stream as UTF-8 (and made sure the source HTML file was UTF-8), the characters rendered as expected.
Thanks for the response. This can be considered resolved.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Thanks for the update! That makes perfect sense. Please feel free to let us know if there is anything else.
|