UrlToPdfUtil
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Web
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
运行环境必须 JDK17 或者 kotlin + jdk1.8
谷歌驱动地址: chromedriver下载地址: http://chromedriver.storage.googleapis.com/index.html http://npm.taobao.org/mirrors/chromedriver/
把exe文件复制到浏览器的安装目录下:C:\Program Files (x86)\Google\Chrome\Application (要根据自己实际安装目录)
源码介绍: 通过使用命令调用谷歌浏览器打印驱动,实现转换 推荐使用 :UrlToPdfUtil_Plus 工具类 如果圈内 有更好的 推荐方案 欢迎 提交~