Java Printing bug on small images

We get to find some intriguing bugs in Java, and today I stumbled across an interesting print issue. This exception was being thrown in Java Printing java.lang.IllegalArgumentException: Width (3) and height (0) must be > 0 at java.awt.image.SampleModel.<init>(SampleModel.java:108) at java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:128) at java.awt.image.PixelInterleavedSampleModel.<init>(PixelInterleavedSampleModel.java:69) at java.awt.image.Raster.createInterleavedRaster(Raster.java:638) at java.awt.image.Raster.createInterleavedRaster(Raster.java:265) at java.awt.image.BufferedImage.<init>(BufferedImage.java:368) at sun.print.PSPathGraphics.redrawRegion(PSPathGraphics.java:626) at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1974) at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1435) at…

Read More

Odd link requests

One of the things I said in my Business of Software conference talk was that we can all see trends and events happening around us. Something which seems to be very common for us in the last month has been requests from websites which have nothing to do with our marketspace offering to swap links…

Read More

How likely is this to happen in a PDF file

As we all know, a PDF file contains a lot of PDF objects (with numbers) at specific byte offsets in the file. Recently we came across some PDF files where the file contained some bum references – the byte offset and the PDF object number were identical. Adobe correctly ignores these objects. So we ignored…

Read More

Is Microsoft going to buy Adobe?

The ground of computing seems to be shifting a great deal at the moment, with rumours of bids for ARM, Autonomy and several other players. The huge changes caused by the Internet, the rise of Social media, and mobile computing mean we live in ‘interesting times’. The latest rumour is that Microsoft might acquire Adobe…

Read More

Bos2010 final day

Bos2010 finished today with three talks which were both informed and very personal. Dan Bricklin told us all about how he created Visicalc and how his experiences at MIT and Harvard Business school fed into the design of the spreadsheet. He talked about designing products and brought it right up to today with his IPad…

Read More