Skip to main content
pdftheory
合并PDF
拆分PDF
压缩PDF
Workflow
Developers
All PDF Tools
整理與管理
PDF多功能工具
合并PDF
拆分PDF
提取页面
整理PDF
删除页面
See all
→
轉換為PDF
JPG转PDF
图像转PDF
PNG转PDF
WebP转PDF
SVG转PDF
BMP转PDF
See all
→
從PDF轉換
PDF转JPG
PDF转PNG
PDF转WebP
PDF转BMP
PDF转TIFF
PDF转SVG
See all
→
編輯與註釋
编辑PDF
签署PDF
裁剪PDF
编辑书签
目录
页码
See all
→
最佳化與修復
修复页面大小
线性化PDF
页面尺寸
删除限制
修复PDF
校正PDF倾斜
See all
→
Write HTML Code
Upload HTML File
Hide Preview
HTML Code Editor
<!DOCTYPE html> <html> <head> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 40px; line-height: 1.6; color: #333; } h1 { color: #2563eb; border-bottom: 2px solid #2563eb; padding-bottom: 10px; } .highlight { background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); padding: 2px 8px; border-radius: 4px; } table { width: 100%; border-collapse: collapse; margin: 20px 0; } th, td { border: 1px solid #ddd; padding: 12px; text-align: left; } th { background-color: #2563eb; color: white; } tr:nth-child(even) { background-color: #f8fafc; } </style> </head> <body> <h1>Welcome to HTML to PDF</h1> <p>This tool converts your <span class="highlight">HTML content</span> into a professionally formatted PDF document.</p> <h2>Features</h2> <ul> <li>Full CSS styling support</li> <li>Multiple page sizes (A4, Letter, Legal)</li> <li>Portrait and Landscape orientations</li> <li>100% client-side processing</li> </ul> <h2>Sample Table</h2> <table> <tr> <th>Feature</th> <th>Status</th> </tr> <tr> <td>CSS Support</td> <td>✅ Full</td> </tr> <tr> <td>Images</td> <td>✅ Embedded</td> </tr> <tr> <td>Privacy</td> <td>✅ No Upload</td> </tr> </table> <p><strong>Edit this HTML and click "Convert to PDF" to get started!</strong></p> </body> </html>
Live Preview
PDF Options
Page Size
a4
letter
legal
Orientation
portrait
landscape
Quality: High
Standard
High
Ultra
Convert to PDF