Vector Graphics are very easy to use in HTML5 and easy to translate from a Java or a PDF scenario.
<!– Canvas we draw the content onto –><canvas id=”pdf” width=”612.0″ height=”792.0″ />
The actual drawing is done in the draw() method using a set of primitives very similar to Java/PDF commands. Here is an excerpt.
The hardest thing from a PDF perspective is the lack of non-RGB colorspaces which means the color values need to be pre-converted. Shape conversion works pretty well as these 2 examples show – click on the images to open the HTML.
Click here to see all the article in the PDF to HTML5 conversion series.