Displaying A Pdf Document
How to Display a pdf document 开发者_JAVA技巧in a web page(Not seprately,just Inside the webpage) using jsp or servlet?
You need to use the <object>
or <embed>
tag to contain the adobe reader and point to your pdf file.
something like: <embed src="YourFile.pdf" width="500" height="375">
another answer here: EMBED vs. OBJECT
You need to set the content type for this on response. call response.setContentType("aplication/pdf"); before writing anything to stream.
精彩评论