you need to do following things.
1. Create servlet (on server side) which will convert pdf to image
2. in gwt show image instead pdf
Please take a look at screen shot in the attachment, there is pdf viewer developed on gwt.
if ("application/force-download".equals(fileType) ||"application/pdf".equals(fileType) ){
response.setContentType("image/png");
try{
RandomAccessFile raf = new RandomAccessFile(file, "r");
FileChannel channel = raf.getChannel();
ByteBuffer buf = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size());
PDFFile pdffile = new PDFFile(buf);
if (pdffile.getNumPages() < pageNumber){
pageNumber = pdffile.getNumPages();
}
PDFPage page = pdffile.getPage(pageNumber);
BufferedImage img=null;
int w = (int) page.getBBox().getWidth();
int h = (int) page.getBBox().getHeight();
Rectangle rect = new Rectangle(0, 0, w, h);
int rotation = page.getRotation();
Rectangle rect1 = rect;
if (rotation == 180) {
rect1 = new Rectangle(0, 0, rect.height, rect.width);
}
img = (BufferedImage) page.getImage( (int)(w+w*coef), (int)(h+h*coef),rect1,null,true,true);
ImageIO.write(createResizedCopy(img, (int)(w+w*coef), (int)(h+h*coef),fileName,rotate,isSmall,coef), imageOutput, response.getOutputStream());