跳过正文
  1. 博客文章/

Macos 一键 使用 wkhtmltopdf 将 html 转换为 pdf

·32 字·1 分钟·
Unix Wkhtmltopdf
Zayn
作者
Zayn
专注 Kubernetes、CI/CD、可观测性等云原生技术栈,记录生产环境中的实战经验与踩坑复盘。
目录

安装 wkhtmltopdf
#

  • 使用 brew 进行安装

    brew install --cask wkhtmltopdf
    
  • 将目录下的所有 html 文件一键转换为 pdf 格式

    for f in *.html; do wkhtmltopdf --load-error-handling ignore -n --enable-local-file-access  $f "$f.pdf"; done
    

参考文档
#

相关文章

使用 Kube-VIP 部署高可用 Kubernetes 集群
·739 字·4 分钟
Kubernetes Kube-Vip Containerd Kubeadm Kubernetes
使用 Kaniko 在 Kubernetes 中构建 Docker 镜像
·468 字·3 分钟
CI/CD Kubernetes DevOps Kaniko Docker Kubernetes
使用 Docker Compose 部署 Nexus3 Docker 私服并配置 Traefik 代理
·574 字·3 分钟
网络 Https DevOps Nexus3 Traefik +2