|
Rank: Newbie Groups: Member
Joined: 12/3/2020 Posts: 3
|
Hello,
We are long time licensed users of EO -- works fabulously to convert HTML -> PDF. We are currently integrating with a third party system that uses another library to do HTML -> PDF conversion. During testing, we are seeing some differences between their output and our EO output.
It will not be feasible to have the third party use EO at this time :/
We have traced down the cause of the differences to:
1. The built-in fonts that EO that uses (Courier specifically) 2. The user agent stylesheet EO uses.
In our code, we do not customize the EO user agent stylesheet / fonts and we would like to customize the third party library to use EO's stylesheet and fonts.
Is it possible to provide me or point me to EO's user agent style sheet / built-in fonts?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Internally EO.Pdf uses Google's Chromium browser engine to load and render HTML. So it uses Chromium's default style sheet. You can find Chromium's default style sheet here: https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/html/resources/html.css;l=1?q=html.css&sq=&ss=chromiumHope this helps. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/3/2020 Posts: 3
|
That was extremely helpful, thank you!
Can you point me to where EO gets its default fonts? Courier is specifically what we are having the most problems with.
It looks like EO embeds CourierNewPSMT, CourierNewPS-BoldMT, CourierNewPS-BoldItalicMT
We are having a difficult time locating the exact font
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
These are the post script version of the font ("PS"). Because PDF prefers PostScript fonts, the code automatically enquires Windows for the PostScript version of a specific font. So whenever you have "CourierNew" you will get "CourierNewPSMT".
Thanks!
|
|