breadlesscode / office-converter

Convert office documents to something else
MIT License
10 stars 3 forks source link

How to convert doc to PDF #5

Open 1357280829 opened 5 years ago

1357280829 commented 5 years ago

I've tried to create a demo for converting the doc file to PDF with Libreoffice, but it can't work successfully. How should I do is right?Here are my code.

use Breadlesscode\Office\Converter;

$file =  './aaa.doc';
Converter::file($file)
    ->save('./demo.pdf');

In addition, the README.md has an error. The word 'conveter' of the composer command composer require breadlesscode/office-conveter is missing a 'r'. It should be 'converter'.

Thanks for your package!

nikkolai14 commented 5 years ago

I update the README file for this.