there are a lot of possible reasons for this, some things you could try:
*) check your browser configuration to see that its set to preview PDFs in browser rather than download
*) check the response headers that come back when you click on the attachment - is the content type listed as PDF
*) run a test with any old PDF file hosted on the same server to see if its the server in general or specific to roundcube