- Notifications
You must be signed in to change notification settings - Fork4
mnvx/unoconv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Simple way for documents conversion into various formats.
For example: html -> docx, html -> pdf, docx -> html and many more.
More aboutsupported formats.
use Mnvx\Unoconv\Converter;use Mnvx\Unoconv\UnoconvParameters;use Mnvx\Unoconv\Format;// Create converter$converter = new Converter();// Describe parameters for converter$parameters = (new UnoconvParameters()) // HTML document as string on input ->setInputStream('<!DOCTYPE html><html>Example of HTML document</html>') // Result file name ->setOutputFile('path-to-result-docx.docx') // Format of result document is docx ->setOutputFormat(Format::FORMAT_TEXT_DOCX);// Run converter$converter->convert($parameters);
sudo apt-get install unoconvcomposer require mnvx/unoconv
If you have problems with Unoconv utility, read instructions descibedinofficial documentation.
Released under the MIT license
About
PHP wrapper over Unoconv
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.