With a PDF, you can generally assume that 8 font families (Courier, Arial, etc) are all setup for you and you do not need to embed them. This keeps down the size of the PDF file. However, this does not stop you embedding your own version of a font and using that instead.
So how do we handle this when we convert PDF to HTML5?
HTML5 generally has passable versions of all these fonts, but the user may want to use the version in the PDF file, so it probably makes sense to let the person doing the conversion decide. So we have a JVM flag (org.jpedal.pdf2html.fontMode) with possible values which include HTMLFontMapper.EMBED_ALL_EXCEPT_BASE_FAMILIES and HTMLFontMapper.EMBED_ALL so that you can choose. If you use EMBED_ALL, you will see all the fonts appearing in the HTML5
<!-- Any embedded fonts defined here -->
<style type="text/css" >
@font-face {
font-family: KHBMAA-Quorum-Bold;
src: url(“01/fonts/KHBMAA-Quorum-Bold.otf”);
}
@font-face {
font-family: KHBLNK-Helvetica;
src: url(“01/fonts/KHBLNK-Helvetica.otf”);
}
@font-face {
font-family: KHBLON-Helvetica-Bold;
src: url(“01/fonts/KHBLON-Helvetica-Bold.otf”);
}
@font-face {
font-family: KHBLOO-HelveticaNeue-Black;
src: url(“01/fonts/KHBLOO-HelveticaNeue-Black.otf”);
}
Can we help you to solve any of these problems?
IDRsolutions has been helping companies to solve these problems since 1999.