【发布时间】:2017-11-17 16:17:45
【问题描述】:
我想使用 libreofficec 将 doc、docx 文件转换为 pdf。我发现了很多与此相关的问题,但其中一个对我没有帮助,所以我在这里发布了我的 qwestion 这是我的代码
$resume = Input::file('resume');
$extenstion = 'pdf';
$datafiles = 'Resume_'.str_random(10).'.'.$extenstion;
$resume ->move(public_path('datafiles/APPL'), $datafiles);
我如何才能仅在此代码中为 ex 我想将文件转换为 pdf 然后分配一个 $datafile 之后我想将此文件移动到此位置 datafiles/APPL 或者有什么方法可以分配 $datafile直接到下面的代码或例如
shell_exec('start /wait soffice --headless --convert-to pdf --outdir --savefile name as $datafiles "./publicapp" "'.$resume.'"'); // is this possible or other correct way
shell_exec('start /wait soffice --headless --convert-to pdf --outdir "./publicapp" "'.$resume.'"');
【问题讨论】:
标签: php laravel libreoffice