开发者

pdf reading in the site [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overl开发者_开发知识库y broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

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


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>


There's Flex Paper.


Just use any basic tag and it should open fine. Better yet, add the target="_blank" to make it open in a new window.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜