Could you use imageMagick? I use that to generate thumbnails from uploaded PDF files but I could easily generate a full size image the same way. Those converted images could then be immediately used to display the contents. I don't know if ghostScript is also a requirement for PDF files (I know imageMagick handles most of the basic image formats for sure).