定制 northwestern-sysdev/unoconv 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

northwestern-sysdev/unoconv

最新稳定版本:v3.1.0

Composer 安装命令:

composer require northwestern-sysdev/unoconv

包简介

Unoconv wrapper for PHP, updated for Symfony 4+

关键字:

README 文档

README

Note: We folded this into the repo that needed it to simplify upgrades, so this package is now deprecated.

Simple way for documents conversion into various formats.

For example: html -> docx, html -> pdf, docx -> html and many more.

More about supported formats.

🚨 This fork will use whatever symfony/process package that the latest Laravel is using. We'll try to keep the other deps up-to-date.

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 unoconv
composer require northwestern-sysdev/unoconv

If you have problems with Unoconv utility, read instructions descibed in official documentation.

License

Released under the MIT license

Credits

Originally forked from mnvx/unoconv -- thanks mnvx!

统计信息

  • 总下载量: 6.33k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固