@neosjs/html-to-pdf
Version:
高性能HTML转PDF工具,支持中文、图片、表格、分页、水印、自定义页眉页脚和页码,内置性能监控和错误处理
120 lines (69 loc) • 6.14 kB
Markdown
# Changelog
此变更记录由 `@neosjs/release` 自动生成
## [2.3.0](https://github.com/NeosJS/html-to-pdf/compare/v2.2.1...v2.3.0) (2025-08-21)
### ✨ Features
* 新增生成PDF的清晰度配置 ([6a597d4](https://github.com/NeosJS/html-to-pdf/commit/6a597d4e72a2e59b46838767ef97b90480e6d6fe))
### 🐛 Bug Fixes
* 修改高清分辨率下页眉页脚高度的计算逻辑 ([7d7c76d](https://github.com/NeosJS/html-to-pdf/commit/7d7c76de062a8911a2b25566d781db54e301c1f0))
## [2.2.1](https://github.com/NeosJS/html-to-pdf/compare/v2.2.0...v2.2.1) (2025-08-20)
### 🐛 Bug Fixes
* 修改页眉页脚最小高度 ([f6a8341](https://github.com/NeosJS/html-to-pdf/commit/f6a834110eb7e2e18cf52614b9ce15ff5400a79a))
### 🔥 Performance Improvements
* 优化页眉页脚配置 ([769ddbf](https://github.com/NeosJS/html-to-pdf/commit/769ddbf377632456905850d8e2eb2144564cdd7d))
### 🤖 Continuous Integration
* 修改CI配置 ([1609c09](https://github.com/NeosJS/html-to-pdf/commit/1609c09eb3fe9e149fc938a5ae624080589f899e))
## [2.2.0](https://github.com/NeosJS/html-to-pdf/compare/v2.1.1...v2.2.0) (2025-08-20)
### ✨ Features
* 新增页眉、页脚、页码字体样式配置 ([2f595a2](https://github.com/NeosJS/html-to-pdf/commit/2f595a2d5f0b3e4c7555a1b6ceab90edc9eaea08))
### 🔥 Performance Improvements
* 优化生成PDF的性能 ([ca3208d](https://github.com/NeosJS/html-to-pdf/commit/ca3208da4020133124cb2b9e06416d323ea7c1e9))
### 🤖 Continuous Integration
* 取消自动发布actions ([2c0eae0](https://github.com/NeosJS/html-to-pdf/commit/2c0eae02c65826255bac2e3ce5a73b838e3e8531))
## [2.1.1](https://github.com/NeosJS/html-to-pdf/compare/v2.1.0...v2.1.1) (2025-08-17)
### 🏡 Chores
* 更改.md文件格式校验 ([5011c90](https://github.com/NeosJS/html-to-pdf/commit/5011c90b4d242ec75497e6ae0726e2737338ee12))
* 移除无效的依赖文件 ([104536f](https://github.com/NeosJS/html-to-pdf/commit/104536fb162f1ee3d5d9bb0388b4844922a445d2))
### 📚 Documentation
* 更新README.md ([1c1860d](https://github.com/NeosJS/html-to-pdf/commit/1c1860d75dc3ccfe96ac942e090fd005de62a12f))
### 🔥 Performance Improvements
* 提升生成PDF性能 ([7b296d3](https://github.com/NeosJS/html-to-pdf/commit/7b296d3d9a37e1bf31bbd5121287f1ebd904a394))
### 🤖 Continuous Integration
* 新增GitHub Actions ([f4f5891](https://github.com/NeosJS/html-to-pdf/commit/f4f5891941878e8b6b3d8a76f47d26c01af8e93e))
* 修改CI配置信息 ([66ceb8d](https://github.com/NeosJS/html-to-pdf/commit/66ceb8d3e6784faec533079944482a5216168776))
## [2.1.0](https://github.com/NeosJS/html-to-pdf/compare/v2.0.0...v2.1.0) (2025-08-17)
### ✨ Features
* 导出单实例函数 ([2ebe335](https://github.com/NeosJS/html-to-pdf/commit/2ebe3356199971d8cd7ffdcf59c6cd04bd2bcdbf))
* 新增中文字体 ([28793df](https://github.com/NeosJS/html-to-pdf/commit/28793dfeb66f3f6a2a3db54631941071fe00d087))
### 📚 Documentation
* 更新README.md ([ab9f333](https://github.com/NeosJS/html-to-pdf/commit/ab9f3337a67f9405457ba16ed1768490f9f6a7a3))
* 更新README.md ([e8b040b](https://github.com/NeosJS/html-to-pdf/commit/e8b040b3b29dd77998a9a8a9ac7e37ace9b4e336))
### 🎨 Code Style Changes
* 添加注释信息 ([fc02216](https://github.com/NeosJS/html-to-pdf/commit/fc0221620dca23f5c678ec37ffc851deaf85ae86))
### 🏗️ Build Changes
* 修改编配配置文件 ([5c5e187](https://github.com/NeosJS/html-to-pdf/commit/5c5e187f4043119653c9aa10a4f9f124ce158203))
* 修改编译配置 ([d151a30](https://github.com/NeosJS/html-to-pdf/commit/d151a30e34469c92ab627afe994df4a7ad0a45d9))
* 修改编译配置 ([8149a51](https://github.com/NeosJS/html-to-pdf/commit/8149a519549db7050061ac7e853d653ec6a5a587))
## 2.0.0 (2025-08-15)
### ✨ Features
* 初始化项目 ([3262b1e](https://github.com/NeosJS/html-to-pdf/commit/3262b1ede3dedd47b629cb9971b402f375e7f790))
* 通过配置控制是否显示页码 ([2554353](https://github.com/NeosJS/html-to-pdf/commit/25543532f85c6013978e350ae59f0964fe540ca5))
* 新增边距配置 ([8399b94](https://github.com/NeosJS/html-to-pdf/commit/8399b94443d8b6fee9e96b61a739c1ae3e025b1e))
* 新增配置打开pdf的权限 ([ea483ae](https://github.com/NeosJS/html-to-pdf/commit/ea483ae81c29076e9368bafae24bc449d2ba9381))
* 新增配置页眉页脚 ([6f43544](https://github.com/NeosJS/html-to-pdf/commit/6f43544a51cb703984298cd44ab3cc67c5e24812))
* 新增性能监控 ([6ba3e49](https://github.com/NeosJS/html-to-pdf/commit/6ba3e494ae13b40100918c816307b9d22e12c37e))
* 新增支持纸张大小 ([0588708](https://github.com/NeosJS/html-to-pdf/commit/0588708f84f0faaef880dc81cb1936d686b049fd))
* 新增自定义pdf背景色 ([f57a9dd](https://github.com/NeosJS/html-to-pdf/commit/f57a9dd473e08216db337ae39adf8850c0bed635))
* 自动适配页眉页脚高度 ([91acfe4](https://github.com/NeosJS/html-to-pdf/commit/91acfe4993e32d74701740aaf72038944b53d388))
### 🐛 Bug Fixes
* 修复生成的PDF左右两边被裁剪的问题 ([8ef78c8](https://github.com/NeosJS/html-to-pdf/commit/8ef78c85ab5a463a430b9856bef63ddf7401e78e))
* 修改PDF页码显示参数 ([f869494](https://github.com/NeosJS/html-to-pdf/commit/f869494b3b355e65f7225a7d3357e0ab1ef5a355))
* 优化插件系统 ([45c5665](https://github.com/NeosJS/html-to-pdf/commit/45c566551f999a18d6afa8ff0f0de60f316fa57e))
### 🏡 Chores
* 更新package.json ([631b585](https://github.com/NeosJS/html-to-pdf/commit/631b5857a1a7c4db8febd3e710d0878205dc8f8f))
* 移除测试插件 ([2dfabde](https://github.com/NeosJS/html-to-pdf/commit/2dfabdef95ab340225ba9946fdf88b994d5324b2))
### 📚 Documentation
* 更新README.md ([81c525f](https://github.com/NeosJS/html-to-pdf/commit/81c525f15fa1f33639e6a70647109d9fe0003a44))
### 🔥 Performance Improvements
* 优化代码监控日志 ([05a9265](https://github.com/NeosJS/html-to-pdf/commit/05a92650151c65b984a84dfa28b7af2790855519))
* 优化水印插件性能 ([562a03c](https://github.com/NeosJS/html-to-pdf/commit/562a03ce4a2d9ab6799343ec29382a63533648f5))
* 优化水印位置计算逻辑 ([ff8c9a6](https://github.com/NeosJS/html-to-pdf/commit/ff8c9a67250734227dca3f43f08294b735ddb009))