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.
Do you need to solve any of these problems?
|Display PDF documents in a Web app|
|Use PDF Forms in a web browser|
|Convert PDF Documents to an image|
|Work with PDF Documents in Java|
Are you a Developer working with PDF files?
|Learn more about PDF file format|