Home > Web Front-end > H5 Tutorial > body text

Preview code in PDF format online in HTML5

不言
Release: 2018-06-12 14:41:16
Original
6462 people have browsed it

This article mainly introduces the sample code for HTML5 online preview of PDF. The editor thinks it is quite good. Now I will share it with you and give it as a reference. Let’s follow the editor to take a look.

Introduction

PDF.js is a Portable Document Format (PDF) viewer that is built with HTML5.

PDF.js is community -driven and supported by Mozilla Labs. Our goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs.

Open source address: https://github.com/mozilla/pdf. js

cannot be used directly after downloading and needs to be rebuilt. If you are not familiar with it, it will be very troublesome

Built package: build_jb51.rar

Example

Quoting files, you can directly copy the following and use it




    
    课程详情
    
    
    
    
    

      

    
Copy after login

The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please Follow PHP Chinese website!

Related recommendations:

How to implement live video function in HTML5

HTML5 Implement methods to access local files

The above is the detailed content of Preview code in PDF format online in HTML5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!