开发者

convert pdf to text "Can not open file pdf"

开发者 https://www.devze.com 2023-02-22 05:38 出处:网络
I tried to convert pdf to text with http://www.pdf2text.com/download/P2TServerT.zip i ran \"regsvr32 P2TServer.dll\" but this code did\'not work

I tried to convert pdf to text with http://www.pdf2text.com/download/P2TServerT.zip i ran "regsvr32 P2TServer.dll" but this code did'not work

<?php
$p2t = new COM("P2TServer.P2T");
$p2t->Veri开发者_开发百科fyLicense("4747457", "345srwr242342423");
$p2t->EngageProcessor(64+32,"5,10,11-15", "");
print $p2t->Convert ("c:\test\test1.pdf", "c:\box\test1.txt");
$p2t = null;
?>

The result like this :

Can not open file: c: est est1.pdfDone!

Everyone can help me? please..


I don't know anything about that particular library, but it looks to me like your paths are not escaped. Try this:

<?php
$p2t = new COM("P2TServer.P2T");
$p2t->VerifyLicense("4747457", "345srwr242342423");
$p2t->EngageProcessor(64+32,"5,10,11-15", "");
print $p2t->Convert ("c:\\test\\test1.pdf", "c:\\box\\test1.txt");
$p2t = null;
?>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号