imgTransform.scale(1, -1);
imgTransform.translate(-rect.getMinX(), -rect.getMaxY());
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);