Added pdf.js to render the uploaded PDF within the document show page . Do not show empty PDF if the document does not have a PDF file. Removed duplicated flash message.