Jas*_*son 3 php pdf-generation
pdftotext采用PDF文件并将文本转换为.txt文件.
我如何获得pdftotext将结果发送到PHP变量而不是文本文件?
我假设我必须跑exec('pdftotext /path/file.pdf'),但我如何得到结果呢?
小智 8
$result = shell_exec("pdftotext file.pdf -");
Run Code Online (Sandbox Code Playgroud)
在-将指示pdftotext返回结果,而不是到stdout到一个文件中.
| 归档时间: |
|
| 查看次数: |
3064 次 |
| 最近记录: |