PDF 旋转工具
在线旋转 PDF 页面方向。按 90/180/270 度旋转,支持"全部页"或"指定页范围"(如 1-3, 5, 8-10)。完全浏览器端本地处理,文件不上传服务器。
关于 PDF 旋转在线工具
这是一个基于 pdf-lib 1.17.1 的纯前端 PDF 旋转在线工具,无需安装,无需注册。打开网页上传 PDF,选择旋转角度(90°/180°/270°),选择"全部页"或"指定页范围"(输入格式如 1-3, 5, 8-10),一键下载旋转后的 PDF。工具通过 page.setRotation(degrees(angle)) 改变页面 /Rotate 属性实现旋转,旋转后页面的实际尺寸(width/height)会按 PDF 规范自动交换(横竖互转时),所以打印或阅读时不会再出现方向错乱的问题。文件不上传服务器,关掉网页数据即销毁,适合处理含敏感扫描件的 PDF。50MB 文件限制。
How to use (怎么使用)
- Click the file picker or drag & drop your PDF (≤ 50 MB) into the dropzone.
- Pick the rotation angle (90 / 180 / 270 degrees) and choose "All pages" or a specific page range like 1-3, 5, 8-10.
- Click "🔄 旋转并下载" — the rotated PDF downloads instantly with the chosen pages correctly oriented.
常见使用场景 (Use Cases)
- 📱 手机扫描的 PDF 打开后是横向的?用本工具旋转 90° 立即变回正向,方便打印。
- 🖨️ 批量打印多张混合方向的扫描件:用"全部页 + 180°"统一方向,打印效果整齐。
- 📚 论文/教材里某几页插图是侧向的:用"指定页范围"只旋转那几页,其它保持原样。
- 📑 把横版幻灯片导出 PDF 后想竖屏阅读,旋转 90° 配合 PDF 合并 拼接成统一竖版讲义。
常见问题 (FAQ)
Q: Will rotating change the file size significantly?
A: Almost no change. Rotation only updates the /Rotate entry in the page dictionary; the underlying image and text streams are untouched. Files may grow or shrink by a few hundred bytes at most.
Q: 旋转 90° 和 270° 有什么区别?
A: 顺时针 90° 与顺时针 270° 方向相反。90° 顺时针 = 内容顺时针转 1/4 圈;270° 顺时针 = 内容逆时针转 1/4 圈。选错方向就再旋一次 180° 即可反转回来。
Q: How do I specify a page range?
A: Use comma-separated ranges, e.g. "1-3, 5, 8-10" means pages 1, 2, 3, 5, 8, 9, 10. Pages outside the total page count are silently skipped.
Q: 旋转后内容会被裁剪或变形吗?
A: 不会。PDF 规范会同步交换 width/height,内容按比例适配新方向,文字图片都不会变形。