Welcome Guest Search | Active Topics | Sign In | Register

EO Html to Pdf Font & Style Consistency with External System Options
Carl Meyertons
Posted: Thursday, December 3, 2020 10:14:44 AM
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?
eo_support
Posted: Thursday, December 3, 2020 10:25:33 AM
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=chromium

Hope this helps.

Thanks!
Carl Meyertons
Posted: Tuesday, December 8, 2020 8:33:33 AM
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
eo_support
Posted: Tuesday, December 8, 2020 4:26:45 PM
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!


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.