Code Monkey home page Code Monkey logo

lute-pdf's Introduction

💡 简介

Lute PDF 是一款将 Markdown 文本转换为 PDF 的小工具。通过 Lute 解析 Markdown 然后再通过 gopdf 生成 PDF。

✨ 特性

  • 几乎支持所有 Markdown 语法元素
  • 图片会通过地址自动拉取并渲染
  • 支持封面配置

📸 截图

sample

⚗ 用法

命令行参数说明:

  • --mdPath:待转换的 Markdown 文件路径
  • --savePath:转换后 PDF 的保存路径
  • --regularFontPath:正常字体文件路径
  • --boldFontPath:粗体字体文件路径
  • --italicFontPath:斜体字体文件路径
  • --coverTitle:封面 - 标题
  • --coverAuthor:封面 - 作者
  • --coverAuthorLink:封面 - 作者链接
  • --coverLink:封面 - 原文链接
  • --coverSource:封面 - 来源网站
  • --coverSourceLink:封面 - 来源网站链接
  • --coverLicense:封面 - 文档许可协议
  • --coverLicenseLink:封面 - 文档许可协议链接
  • --coverLogoLink:封面 - 图标链接
  • --coverLogoTitle:封面 - 图标标题
  • --coverLogoTitleLink:封面 - 图标标题链接

🐛 已知问题

  • 没有代码高亮,代码块统一使用绿色渲染
  • 没有渲染 Emoji
  • 表格没有边框
  • 表格单元格折行计算有问题
  • 粗体、斜体需要字体本身支持

🏘️ 社区

📄 开源协议

Lute PDF 使用 木兰宽松许可证, 第2版 开源协议。

🙏 鸣谢

lute-pdf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lute-pdf's Issues

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.