Render the pdf file in query result view