Giter VIP home page Giter VIP logo

xlsx2doc's Introduction

xlsx2doc

将xlsx表格中的每一条数据按照模版转换成doc文件的批处理程序,支持图片链接下载。

使用

  1. 打包程序为可执行文件
  2. 将需要处理的xlsx文件命名为target.xlsx并放置于可执行文件同级目录
  3. 编写config.json并放置于可执行文件同级目录
  4. 编写template.docx并放置于可执行文件同级目录
  5. 执行可执行文件,并得到输出文件夹output

target.xlsxconfig.jsontemplate.docx 必须要有,格式和作用直接看example就懂了。

其他

docx-rs这个库有点问题,以本地引入的方式引入

docx-rs = { path = "./docx-rs-0.3.4" }

resolve-xlsx-link是一个单独的包,用来处理xlsx文件中HYPERLINK的问题(将点击跳转的目标地址转换为显示的文本)

这个项目是很久之前的了,只是最近才放到github上,所以代码中有一些问题没有处理的很好,但正常使用是没问题的,如果遇到问题可以提issue或者邮箱联系我

编译release的时候会卡在一个库上,一直没找到原因,记录一下

许可

MIT

Copyright (c) 2022 Boda Lü

xlsx2doc's People

Contributors

lvboda avatar

Stargazers

 avatar  avatar

Watchers

 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.