graphics.setTransform(imgTransform);
graphics.setBackgroundColor(Color.WHITE);
graphics.fill(rect);
CSContent content = pdPage.getContentStream();
if (content != null) {
JPodRenderer renderer = new JPodRenderer(null,graphics);
renderer.process(content, pdPage.getResources());
}
// pageItem.setThumbnail(scaledInstance);
BufferedImage scaledInstance = ImageUtility.getScaledInstance(imageInstance, width, height);
pageItem.setPaperFormat(recWidth, rectHeight, JPodThumbnailCreator.JPOD_RESOLUTION);
if(pdPage.getRotate()!=0){