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" >
Can we help you to solve any of these problems?
IDRsolutions has been helping companies to solve these problems since 1999.
|Convert PDF to HTML5 or SVG||Convert PDF forms to HTML5|
|Java SDK for Image files||Java SDK for PDF files|