Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

PHP wrapper over Unoconv

NotificationsYou must be signed in to change notification settings

mnvx/unoconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Usage

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

Install

sudo apt-get install unoconvcomposer require mnvx/unoconv

If you have problems with Unoconv utility, read instructions descibedinofficial documentation.

License

Released under the MIT license


[8]ページ先頭

©2009-2025 Movatter.jp