Need to save a web page or HTML email as a PDF? Here's how to capture web content reliably.
Why Convert HTML to PDF?
Save Web Pages
- Archive important articles
- Save receipts and confirmations
- Keep reference material offline
- Document web content as evidence
Save Emails
- Archive important correspondence
- Create records for legal/business
- Share formatted emails
- Backup Gmail/Outlook messages
Create Documents
- Generate reports from web data
- Convert web apps to printable format
- Create documentation from online sources
Method 1: Browser Print to PDF (Easiest)
Works in Chrome, Edge, Firefox, Safari:
Steps:
- Open the web page
- Press Ctrl+P (Cmd+P on Mac)
- Set destination to "Save as PDF" or "Microsoft Print to PDF"
- Adjust settings:
- Layout (portrait/landscape)
- Pages (all or selection)
- Margins
- Background graphics
- Click Save/Print
- Choose save location
Chrome-Specific Tips
Print background graphics:
- More settings > Check "Background graphics"
- Ensures colors and images appear
Headers and footers:
- Uncheck to remove URL/date stamps
- Or keep for documentation
Firefox Tips
Simplify page first:
- Reader View (F9) removes ads/clutter
- Then print to PDF
Method 2: Online HTML to PDF Converter
For URLs or HTML files:
- Go to lexosign.com/html-to-pdf
- Enter URL or upload HTML file
- Set options
- Convert and download
Advantages:
- Consistent rendering
- Additional options
- Works from any device
Method 3: Browser Extensions
Install extensions for one-click saving:
Popular options:
- Save as PDF (Chrome)
- Print Friendly (removes clutter)
- SingleFile (saves complete page)
Pros: Quick, convenient
Cons: Another extension to manage
Method 4: Command Line (Advanced)
For developers and automation:
wkhtmltopdf:
wkhtmltopdf https://example.com output.pdf
Puppeteer (Node.js):
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://example.com');
await page.pdf({path: 'output.pdf'});
Best for: Batch conversion, automation, server-side generation.
Saving Different Content Types
Regular Web Pages
Standard process works well:
- Print to PDF
- Most formatting preserved
- Links may or may not work
Single Page Applications (SPAs)
React, Vue, Angular sites:
- May need to wait for content to load
- Print after page fully renders
- Some dynamic content may not capture
Password-Protected Pages
Content behind login:
- Log in first
- Then print to PDF
- Or use screenshot if print is blocked
Infinite Scroll Pages
Social media, news feeds:
- Scroll to load desired content first
- Select specific content if possible
- May need multiple saves
Saving Emails as PDF
Gmail
- Open the email
- Click three dots menu
- Select "Print"
- Choose "Save as PDF"
- Save
Alternative: Forward to a service that converts to PDF
Outlook (Desktop)
- Open the email
- File > Print
- Select PDF printer
- Print/Save
Outlook (Web)
- Open the email
- Click three dots
- Save as PDF
Apple Mail
- Open email
- File > Export as PDF
- Choose location
- Save
Improving PDF Quality
Remove Clutter First
Before saving:
- Use Reader View if available
- Install ad blocker
- Print specific selection instead of whole page
Adjust Page Settings
In print dialog:
- Choose appropriate margins
- Select portrait or landscape
- Enable background graphics for colors
Custom CSS (Advanced)
Add print-specific styles:
@media print {
.ads, .navigation { display: none; }
body { font-size: 12pt; }
}
Preserving Links
Clickable Links in PDF
Browser print usually preserves:
- Internal page links
- External URL links
- Email links
Verifying Links Work
After saving:
- Open PDF
- Click links to test
- Note: Some viewers don't support PDF links
Handling Images
Images Not Appearing
Causes:
- Background graphics setting off
- Images loading slowly
- Blocked resources
Fixes:
- Enable background graphics
- Wait for page to fully load
- Try online converter
Image Quality
For high-quality images:
- Use higher DPI setting if available
- Print at larger page size, scale down later
- Consider screenshot + convert for complex layouts
Multi-Page Websites
Saving Multiple Pages
For entire websites:
- Use website-to-PDF tools
- HTTrack + batch convert
- Specialized archiving tools
Creating Combined Document
- Save each page as PDF
- Merge PDFs into one document
- Add table of contents if needed
Troubleshooting
Blank Pages
Cause: Print stylesheet hides content
Fix: Try different browser or online converter
Missing Content
Cause: JavaScript-loaded content not rendered
Fix: Wait for full load, try different tool
Formatting Broken
Cause: Print CSS differs from screen CSS
Fix: Adjust page settings, try landscape mode
File Too Large
Cause: Many high-resolution images
Fix: Compress the PDF after saving
Conclusion
Converting HTML to PDF is straightforward:
- Browser print for most web pages
- Online tools for consistent results
- Extensions for frequent use
- Command line for automation
For simple conversions, browser print works great. For complex pages or batch processing, use specialized tools.
Save important web content before it disappears. Websites change, links break, content gets removed. A PDF archive ensures you always have access.