All this, and more, is part of ImageIOUtil.writeImage() in the (unreleased) 2.0 version of PDFBOX. Reply
All this, and more, is part of ImageIOUtil.writeImage() in the (unreleased) 2.0 version of PDFBOX.