GithubHelp home page GithubHelp logo

snsdtj / ofdrw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ofdrw/ofdrw

0.0 0.0 0.0 352.5 MB

OFD Reader&Writer 提供OFD的生成、解析、签章、转换。依照《GB/T 33190-2016 电子文件存储与交换格式版式文档》实现的OFD版式文档,读写库。

Home Page: https://github.com/ofdrw/ofdrw

License: Apache License 2.0

Java 87.71% HTML 12.29%

ofdrw's Introduction

OFD Reader & Writer

- license

在使用OFDRW前请务必悉知 《OFD Reader & Writer免责声明》

如果clone和预览存在困难,请移步 https://gitee.com/ofdrw/ofdrw

Talk is cheap,Show me the code. ——Linus Torvalds

像写HTML和Word那样简单的编写OFD。

根据《GB/T 33190-2016 电子文件存储与交换格式版式文档》标准实现版式文档OFD库(含有书签)。

项目结构:

QuickStart

引入依赖

<dependency>
  <groupId>org.ofdrw</groupId>
  <artifactId>ofdrw-full</artifactId>
  <version>1.17.6</version>
</dependency>

如何生成一份OFD文档?

如何把大象放入冰箱。

public class HelloWorld {
    public static void main(String[] args) throws IOException {
        Path path = Paths.get("HelloWorld.ofd");
        try (OFDDoc ofdDoc = new OFDDoc(path)) {
            Paragraph p = new Paragraph("你好呀,OFD Reader&Writer!");
            ofdDoc.add(p);
        }
        System.out.println("生成文档位置: " + path.toAbsolutePath());
    }
}

效果如下:

示例

相关文档目录:

OFD阅读器客户端: 数科阅读器 . http://www.suwell.cn/

推荐解决方案

HTML预览

DLTech21/ofd.js

ofd.js

推荐开源的OFD在线预览解决方案: DLTech21/ofd.js . https://github.com/DLTech21/ofd.js

  • 将OFD渲染为SVG实现矢量的无失真的OFD预览体验。
  • 完全基于浏览器在前端完成所有渲染工作,不需要服务端支持和插件。

开源客户端

推荐开源客户端预览解决方案: roy19831015/OfdiumEx . https://github.com/roy19831015/OfdiumEx

  • 基于cairo库渲染OFD。
  • Windows客户端

OFD R&W Android

OFD Reader and Writer 安卓平台解决方案: DLTech21/ofdrw-aar . https://github.com/DLTech21/ofdrw-aar

图片转换

目前已经被合并到ofdrw-converter 模块

推荐开源OFD图片转换解决方案: QAQtutu/ofdbox . https://github.com/QAQtutu/ofdbox

  • 支持OFD解析。
  • 基于java.awt解析OFD实现图片绘制。

源码安装

在项目根目录下运行

mvn install

就可以完成项目的构建打包,安装到本地Maven仓库中。

交流

Share and Communicate

为了方便大家的交流提供QQ群

  • 01群号: 577682453 (满)
  • 02群号: 745517934 (满)
  • 03群号: 717320255

QQ群

如果各位对 OFD R&W 有 问题 或是 建议 可以提交issue和PullRequest,欢迎进群交流。

参与贡献

参与贡献代码尽量遵守下面代码规约:

  1. 原则上禁止public方法、类、接口进行删除:为了保留向下兼容性,如果是更新升级请标注过去已经暴露方法、接口、类为过时标记@Deprecated,并注释置新的实现位置@deprecated {@link SomethingNew}
  2. 请为每个public方法、类、接口添加注释:为了保留开发者的便利性,注释一般为多行注释,注释内容需要包含参数以及方法或类的作用、参数意义、返还值以及意义、异常抛出、以及参数意义。

>> GitHub 第一次参与开源(多语言)

项目情况

进展

>> 项目进展

项目关注度

项目获得 Star曲线

Stargazers over time

ofdrw's People

Contributors

trisia avatar dltech21 avatar humingzhang avatar yuanfangme avatar qaqtutu avatar iandjava avatar dwflzxj avatar libra19911018 avatar 1995zwd avatar littletain avatar dependabot[bot] avatar juntt avatar leonsu7774 avatar chi-cat avatar marviniter avatar nearzk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.