Quantcast
Channel: Leon Atherton, Author at Java PDF Blog
Browsing all 39 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

PDF to HTML5 conversion – No Even-Odd Winding Rule for filling shapes in...

When filling shapes in PDFs (and lots of other technologies) you get a choice between using the Even-Odd or the Non-Zero winding rule. For those of you already thinking to yourself “what the hell is he...

View Article



PDF to HTML5 conversion – No Even-Odd Winding Rule for filling shapes in...

This is part 2 on this subject. If you haven’t already read it, please read part 1 to understand the winding problem. So to recap quickly: HTML5 only supports the Non-Zero winding rule, however PDF...

View Article

Why canvas is not a self closing HTML5 tag

While debugging a page produced by our PDF to HTML5 Converter, I noticed that Firefox was showing some of the tags in the HTML source in red. Specifically, there was a closing div tag.   The solution I...

View Article

SVG shapes not working in Firefox but fine in Chrome, Safari, IE & Opera?

After taking a sneak peak at upcoming PDF to SVG functionality for our Online Converter, I was disappointed to see that shapes were not appearing at all in Firefox, but appeared correctly in all other...

View Article

Image may be NSFW.
Clik here to view.

How to draw SVG on HTML 5 Canvas and why you might want to

One of the limitations of shapes in HTML 5 canvas is that only one fill rule is supported, which can lead to shapes not appearing correctly when you want to convert from another format that supports...

View Article


NetBeans “Cannot locate java installation in specified jdkhome”?

[Article updated in January 2019] I recently came across this message when opening NetBeans after updating my Java version. Cannot locate Java installation in specified jdkhome: C:\Program...

View Article

Optimising conversion from float to String in Java

Lets say you have a very specific use case – you want to convert a float to a String in Java, and if the float ends in .0, you want to chop it off. I have this use case, (I was investigating reducing...

View Article

How to convert from BufferedImage to JavaFX 2.2 Image

Until recently, if you wanted to load a BufferedImage in JavaFX you were out of luck – the only way to do it was to write out the BufferedImage to disk and then read it back in as a JavaFX Image. But,...

View Article


Image may be NSFW.
Clik here to view.

JavaFX vs Java3D: First Impressions

One of the more ‘flashy’ features in our Java PDF Viewer is the ‘PageFlow’ mode. Java3D provides a nice reflective stage with the pages of the PDF file lined up, and you are able to smoothly scroll...

View Article


How to add a window resize listener to JavaFX scene

While converting the PageFlow mode from Java3D to JavaFX in our Java PDF Viewer, one of the things that I found unclear was how to listen out for window resizes. In awt, you are able to add a...

View Article

Handling Threads & Concurrency in JavaFX

Recently, while converting the PageFlow mode from Java3D to JavaFX in our Java PDF Viewer, I came across some ConcurrentModificationException issues, so thought it worthwhile sharing what I have learnt...

View Article

Image may be NSFW.
Clik here to view.

Integrating JavaFX with Swing: The JFXPanel

If you want to use JavaFX, there are essentially two ways you can do so. The first is to create a standard JavaFX project that extends the Application class, and the second is to use the JFXPanel class...

View Article

Image may be NSFW.
Clik here to view.

How to set Z order of nodes in JavaFX

One of the problems that cropped up while converting our Java3D PageFlow PDF viewer mode to JavaFX was the issue of how to replicate the z positioning of Java3D’s 3D scene with JavaFX’s 2D scene....

View Article


MouseEvents in JavaFX

I had a lot of fun playing with mouse events while building our PageFlow PDF Viewing mode in JavaFX, so thought it worth writing a quick tutorial and sharing what I have learned. To begin, there are a...

View Article

Why convert PDF magazines to HTML5?

In these articles, we talk about the advantages of converting your PDF documents to HTML5. Each point has a full supporting article with a more in depth discussion on that point. Don’t forget to check...

View Article


Why we are planning to remove Canvas in our PDF to HTML5 Converter…

Ever since we began writing our PDF to HTML5 converter a little over 2 years ago, we have chosen the HTML5 canvas as the way to present a PDF file as HTML5. It allows us to output PDF vector graphics...

View Article

Image may be NSFW.
Clik here to view.

What size is 100% scaling in PDF?

As with the majority of the PDF specification, what determines the physical size of your PDF is very complicated but also very powerful, and done in the way that it is for very good reason – so that...

View Article


What is the optimum number of lines of code written per day?

I recently spent a few days working on rewriting the way that settings get passed into one of our products. This was a slight deviation to my usual work – I can usually be found writing code that...

View Article

Image may be NSFW.
Clik here to view.

How does Image Aspect Ratio work in SVG

SVG is a fantastic technology that is becoming increasingly popular as our web browsers get increasingly more powerful. I actually think that SVG offers many advantages over Canvas. SVG is a vector...

View Article

Image may be NSFW.
Clik here to view.

Measure content performance with Analytics – Why convert PDF magazines to...

One of the things that all good content producers rely heavily on is analytics. Analytics give you the opportunity to see what is doing well (the stuff you need to do more of), and what isn’t doing...

View Article
Browsing all 39 articles
Browse latest View live




Latest Images