Chika Okereke FollowChika is a Java developer. When not experimenting with the new features of Java, he is a keen basketball player (he is the tall guy you might see at Devoxx).

PDF to HTML5 conversion – Line width

December 21, 2011 34 sec read

Who would have thought that line width affects colour appearance? Debugging a file today led to an interesting discovery. The file in question seemed to have its lines missing when opened in firefox and appears to be a murky grey in Google chrome as opposed to black.

On first glance it seemed as though the line was not being printed out at all as I opened it in Firefox. However, after analysing the html out put the command to draw the line was clearly printed. After making sure that the RGB colour was in fact set to black the only other thing to consider was the line width which suprisingly showed a massive difference when increased. In chrome it became a more predominant black while it firefox it actually made an appearance.

I am sure we will find some additional cases which we have not currently covered. So try the latest version and let us know what you think.