How to export a web page as a PDF with an Axiom bot

Browser automation for humans & AI
22 views β€’ July 16, 2026

user asked us: can my bot save a page as a PDF? Bots can't press Ctrl+P β€” but there's a trick. πŸ“„ Full guide with the copy-paste JavaScript: https://axiom.ai/guides/export-webpage-as-pdf Three steps in Axiom: 1. Go to page β€” enter your URL 2. Write JavaScript β€” paste the code from the guide (it loads html2pdf.js and exports the page as an A4 PDF) 3. Wait β€” give the export a few seconds to finish Run the bot locally and the PDF drops straight into your Chrome downloads folder. ⚠️ Heads-up: pages with a strict Content Security Policy (like the BBC) block the library β€” test on a page that allows external scripts. Got an automation question? Ask in the comments β€” it might be the next video. πŸ”— Try Axiom free: https://axiom.ai #NoCode #BrowserAutomation #Automation

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close