i need to provide pdf reading in my site, but i haven't done such before, so could you tell me how i can do it(just give me an idea, or some links...). thanks
+1
A:
If it is a static PDF file, just put it in public webcontent and give a link to the PDF file using the HTML <a>
tag. The server will worry about setting the correct response headers. E.g:
<a href="file.pdf">Open PDF</a>
If you like to embed it in a webpage, then you can use the HTML <iframe>
tag for this whose src
attribute should point to the URL of the PDF file. E.g:
<iframe src="file.pdf" width="500" height="300"></iframe>
BalusC
2010-04-28 20:46:42
A:
Just use any basic tag and it should open fine. Better yet, add the target="_blank" to make it open in a new window.
adamzwakk
2010-04-29 01:38:38