PHP-在线阅读PDF文件
2013-01-11 16:52
375 查看
if(!function_exists('read_pdf')) { function read_pdf($file) { if(strtolower(substr(strrchr($file,'.'),1) != 'pdf')) { echo '文件格式不对'; return; } if(!file_exists($file)) { echo '文件不存在'; return; } header('Content-type: application/pdf'); header('filename='.$file); readfile($file); } } read_pdf("englishi.pdf");
相关文章推荐
- 实现在线阅读WORD,PDF等文件,JAVA,PHP都可以
- 在html页面中展示pdf文件,实现在线阅读
- Java平台要实现类似豆丁百度文科的文档在线阅读,总体思路是讲doc docx等文件格式利用jcom转换成pdf再用swftools转为swf。再用flexpaper组件显示swf。
- php在线查看pdf文件
- 保存在线阅读的PDF文件到本地
- Java平台要实现类似豆丁百度文科的文档在线阅读,总体思路是讲doc docx等文件格式利用jcom转换成pdf再用swftools转为swf。再用flexpaper组件显示swf。
- HTML5在线PDF格式文件阅读器
- 实现在线阅读pdf功能--php
- 在你的网页中嵌入PDF等文件,实现pdf在线阅读
- php 在线读取PDF文件
- Asp.net在线阅读文件(pdf,txt,doc,jpg等)
- 文档在线阅读系列之——pdf文件转换为html
- 在你的网页中嵌入PDF等文件,实现pdf在线阅读
- php在线查看pdf文件
- php 存PDF文件及其在线预览功能
- Ubuntu 服务器 PHP实现word、excel、ppt、pdf 等文档在线阅读功能的实现
- 前端实现在线预览pdf、word、xls、ppt等文件
- php防dedecms附件式文件在线管理系统(1/6)
- jsp页面实现在线预览pdf文件
- 在线PDF阅读&编辑网站一览