js+pdf实现浏览器端读取pdf文档内容文本代码

代码语言:html

所属分类:其他

代码描述:js+pdf实现浏览器端读取pdf文档内容文本代码,将pdf文档转成文本内容。

代码标签: js pdf 浏览器 读取 pdf 文档 内容 文本 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
 
<meta charset="UTF-8">
 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 
<title>Drag and Drop PDF Reader</title>
 
<style>
    body
{
     
font-family: Arial, sans-serif;
     
text-align: center;
     
padding: 50px;
   
}
   
#dropZone {
     
border: 2px dashed #ccc;
     
padding: 50px;
     
margin: 20px;
     
color: #ccc;
   
}
   
#dropZone.dragover {
     
border-color: #000;
     
color: #000;
   
}
   
#textContent {
     
text-align: left;
     
margin: 20px;
   
}
 
</style>
</head>
<body>
 
<h1>  拖拽pdf文档到此</h1>
 
<div id="dropZone">
   拖拽pdf文档到此
 
</div>
 
<div id="textContent"></div>
<script type="text/javascrip.........完整代码请登录后点击上方下载按钮下载查看

网友评论0