Hi, Could someone give me the code to open a PDF document, I am guessing its starts with somthing like the below. Thanks in advance.
Code :resp.setContentType("application/pdf");
Printable View
Hi, Could someone give me the code to open a PDF document, I am guessing its starts with somthing like the below. Thanks in advance.
Code :resp.setContentType("application/pdf");
You may need to set header:
Code :resp.setHeader("Content-disposition", "attachment; filename=YourFile.pdf" );