定制 lebedevsergey/odt2xhtml 二次开发

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

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

lebedevsergey/odt2xhtml

Composer 安装命令:

composer require lebedevsergey/odt2xhtml

包简介

A small library for converting documents in Open Document Format to HTML. Based on the code from https://github.com/hucste/Odt2Xhtml

关键字:

README 文档

README

What is it?

  • ODT2XHTML is a small library for converting documents in Open Document Format to HTML.
  • Supports most ODF text formatting features including embedded images, lists, tables, subscripts, supescripts, etc.
  • Based on heavily refactored code from Odt2Xhtml library by Stéphane HUC. Example ODF files are taken from original library

How to use it?

  • Add ODT2XHTML to your project composer require lebedevsergey/odt2xhtml
  • create ODT2XHTML object: $converter = new ODT2XHTML()
  • call convert method: $converter->convert($ODTFilePath, $ODTHTMLPath, true);

where:

  • $ODTFilePath - path to Open Office document to convert
  • $ODTHTMLPath - path to the resulted HTML folder, HTML file name will be the same as the Open Office document file name but with .html extension
  • the third value is the boolean flag whether resulted CSS styles will be embedded into generated HTML file or will be in a separate CSS file

See also included example code in example.php.

What else?

  • supports files in:
    • Open Document Format with extensions: .odb, .odc, .odf, .odg, .odi, .odp, .ods, .odt, .odm, .otg, .oth, .otp, .ots, .ott
    • StarOffice format with extensions: .stc, .std, .sti, .stw, .sxc, .sxd, .sxg, .sxi, .sxm, .sxw
  • PHP 5.6 or higher is required

Authors?

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固