PHP Page display PDF problem

Source: Internet
Author: User
Tags php pdf
PHP PDF Browser Web page

For advice Need to display PDFs on a Web page some methods have been looked up from the Internet for example:

But it will be an error (malformed: not a PDF file or file is corrupted)
But I can open the file with a PDF reader and open it via the browser's address bar
Excuse me, what is the reason for the problem with the file or the method?
For advice URGENT Request!!!


Reply to discussion (solution)

Can Ah, you see:


Use the JS library.
Download Address: Https://github.com/mozilla/pdf.js

Online Demo. Http://mozilla.github.io/pdf.js/web/viewer.html

Can Ah, you see:


Yes, well, my file path was incorrectly written.
But this seems to depend on Adobe Reader.
If users don't have Adobe reader locally, they won't be able to use it.
Is there any other way?

Use the JS library.
Download Address: Https://github.com/mozilla/pdf.js

Online Demo. Http://mozilla.github.io/pdf.js/web/viewer.html

Demo address in IE reported wrong Firefox can run, the effect is good, but feel very card. Does this depend on Adobe Reader?

It does not support IE, do not need Adobe Reader, pure HTML5 JS Library.

Or you can use Flash PDF reader so that the browser can support it, and Adobe Reader is not required.
http://flexpaper.devaldi.com/

Or you can use Flash PDF reader so that the browser can support it, and Adobe Reader is not required.
http://flexpaper.devaldi.com/
Well, thank you for your help. Finally the leader let me turn the PDF to the picture, then use the album display

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.