【问题标题】:convert pdf to text "Can not open file pdf"将pdf转换为文本“无法打开文件pdf”
【发布时间】:2011-04-05 02:30:13
【问题描述】:

我尝试使用 http://www.pdf2text.com/download/P2TServerT.zip 将 pdf 转换为文本 我运行了“regsvr32 P2TServer.dll”,但这段代码不起作用

<?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;
?>

结果如下:

无法打开文件:c:est est1.pdfDone!

每个人都可以帮助我吗?请..

【问题讨论】:

    标签: php pdf text text-files


    【解决方案1】:

    我对那个特定的库一无所知,但在我看来,您的路径没有逃脱。试试这个:

    <?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;
    ?>
    

    【讨论】:

      猜你喜欢
      • 2016-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-25
      相关资源
      最近更新 更多