I am using getRotatedImage function of ImageUtil class of apache pdfbox library to rotate a Buffered Image. The output is perfectly rotated image provided with Buffered image and degree of rotation. The only problem is that the output image when converted to pdf is more than double the size of original image, i.e 1.7MB image is converted to 4.3MB pdf. Is there any problem with ImageUtil.getRotatedImage method of pdfbox library.
The format of image was .tif and i used LosslessFactory.createFromImage(doc, bim) to create PDImageXObject object.