当前位置:   article > 正文

【工具】使用asciidoctor-pdf将adoc文件转换成pdf

【工具】使用asciidoctor-pdf将adoc文件转换成pdf

配置方法

使用gem镜像源, 安装工具 asciidoctor-pdf

配置gem镜像源

  • 查找默认源
gem sources
  • 1
  • 移除默认源
gem sources --remove https://rubygems.org/
  • 1
  • 添加新镜像源
gem sources -a https://mirrors.aliyun.com/rubygems/
  • 1

安装工具 asciidoctor-pdf

  • 使用gem命令安装asciidoctor pdf工具。
gem install asciidoctor-pdf
  • 1

将adoc转换成pdf

  • 转换成pdf
asciidoctor-pdf riscv-cc.adoc -o riscv-cc.pdf
  • 1
  • 使用evince 打开生成的pdf文件
evince riscv-cc.pdf
  • 1

reference

  • https://developer.aliyun.com/mirror/rubygems?spm=a2c6h.13651102.0.0.3e221b11M0CY19
  • https://blog.csdn.net/weiqi7777/article/details/105958113
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号