php 获取pdf中的文字,php – 如何从PDF文档中提取文本?

下载class.pdf2text.php @

http://pastebin.com/dvwySU1a(更新日期:2014年4月5日)或

http://www.phpclasses.org/browse/file/31030.html(需要注册)

码:

include('class.pdf2text.php');

$a = new PDF2Text();

$a->setFilename('Videographer_RFP.pdf'); //grab the test file at http://www.newyorklivearts.org/Videographer_RFP.pdf

$a->decodePDF();

echo $a->output();

输出:

Videographer Request for Proposals Introduction and Mission New York

Live Arts strives to create a robust framework in support of the

nation’s dance and movement-based artists through new approaches to

producing, presenting and educating. Our programs support individual

artists at all stages of their careers, encouraging experimentation

and rigor. New York Live Arts is located at 219 West 19th Street in

New York City and is led by Bill T. Jones as Executive Artistic

Director

类不工作与所有的pdf我已经测试,给它一个尝试,你可能会幸运:)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值