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" >
Do you need to write or read JPEG in Java?
We have an easy guide on how to write JPEG in Java using ImageIO and JDeli.
You can learn how to read/write most of the image files in ImageIO. However, it gives little control over the process.
JDeli is easy to use and offers complete support, so why don't you give a try?