October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

How to Capture a Webpage as a PDF with Urlbox

Capture a webpage to PDF with Urlbox’s CLI or synchronous API, choose page and print settings, and save the temporary result before it expires.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

With Urlbox, you can save a webpage as a PDF from the command line or through its API. For a one-off capture, run urlbox pdf https://example.com --output page.pdf. For an application, send a render request with format set to pdf, then download the temporary render URL returned by the synchronous API. The two workflows have different defaults: the CLI’s PDF shortcut enables full-page capture, while the API’s PDF default is multipage.

Capture a page from the command line

Urlbox’s CLI can render a page and write the PDF directly to a local file:

As an Amazon Associate I earn from qualifying purchases.

urlbox pdf https://example.com --output page.pdf

The pdf command is shorthand for rendering with PDF format and full-page capture enabled. If you want a conventional multipage document instead of one long page, use the CLI’s documented render options to override full-page capture. The CLI quickstart covers installation and login; see Urlbox’s CLI quickstart for those prerequisites and current setup steps.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Generate a PDF through the Urlbox API

For an application or script, send a request to Urlbox’s synchronous render endpoint. Authenticate with your project secret as a bearer token and provide a publicly accessible page URL with format set to pdf.

#1 Best Overall
Sale
Epson Workforce ES-50 Compact & Lightweight Mobile Document Scanner
  • PORTABLE SCANNER FOR USE ON-THE-GO — The fastest and lightest mobile single-sheet-fed compact document scanner in its class¹
  • QUICK DOCUMENT SCANNING ― This Epson ultra-fast scanner scans a single page as quickly as 5.5 seconds²; Windows and Mac compatible
  • VERSATILE PAPER HANDLING ― Portable scanner scans documents up to 8.5 x 72 in; Also easily digitizes receipts and ID cards to make accounting, bookkeeping, and organizing simpler
  • INTUITIVE, HIGH-SPEED SOFTWARE — Epson ScanSmart Software³ is a smart tool allowing you to easily scan, review, and save; Stay organized easily with the help of this Epson scanner
  • EASY SETUP — USB-powered connect to your computer for quick and simple scanning; No batteries or external power supply required to operate portable document scanner; Standard Connectivity: USB 2.0
curl -X POST "https://api.urlbox.com/v1/render/sync" 
  -H "Authorization: Bearer YOUR_PROJECT_SECRET" 
  -H "Content-Type: application/json" 
  -d '{"url":"https://example.com","format":"pdf"}'

Urlbox returns JSON containing a temporary renderUrl. Download the PDF from that URL and save it locally:

curl -L "RENDER_URL_FROM_RESPONSE" -o page.pdf

Replace RENDER_URL_FROM_RESPONSE with the value of renderUrl in the API response. Keep the API request and file download as separate steps: the first asks Urlbox to render the page, and the second retrieves the resulting file. The endpoint, authentication, and response behavior are documented in the Urlbox API reference.

Rank #2
Sale
Brother DS-640 Compact Mobile Document Scanner, (Model: DS640)
  • FAST SPEEDS - Scans color and black and white documents a blazing speed up to 16ppm (1). Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • ULTRA COMPACT – At less than 1 foot in length and only about 1. 5lbs in weight you can fit this device virtually anywhere (a bag, a purse, even a pocket).
  • READY WHENEVER YOU ARE – The DS-640 mobile scanner is powered via an included micro USB 3. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan.
  • WORKS YOUR WAY – Use the Brother free iPrint&Scan desktop app for scanning to multiple “Scan-to” destinations like PC, Network, cloud services, Email and OCR. (2) Supports Windows, Mac and Linux and TWAIN/WIA for PC/ICA for Mac/SANE drivers. (3)
  • OPTIMIZE IMAGES AND TEXT – Automatic color detection/adjustment, image rotation (PC only), bleed through prevention/background removal, text enhancement, color drop to enhance scans. Software suite includes document management and OCR software. (4)

Use a reachable URL

The API’s URL input must be publicly accessible to Urlbox. If the page is private or hosted on an internal network, this basic URL workflow may not work; the available documentation here does not establish a specific private-page setup. Urlbox also accepts HTML input, as described in its PDF documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose synchronous or asynchronous rendering

The synchronous endpoint waits for the render and returns a result URL. For longer-running or automated jobs, Urlbox also documents an asynchronous endpoint that returns a render ID and status URL for polling; webhooks are another documented way to receive status updates. Check the API reference for the current request and response details before wiring those flows into an application.

Rank #3
Sale
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
  • STAY ORGANIZED – Easily convert your paper documents into digital formats like searchable PDF files, JPEGs, and more.Power Consumption : 2.5W or less (Energy Saving Mode: 0.7W). Suggested Daily Volume : 500 scans..Does it contain liquid: no
  • CONVENIENT AND PORTABLE –lightweight and small in size, you can take the scanner anywhere from home offices, classrooms, remote offices, and anywhere in between
  • HANDLES VARIOUS MEDIA TYPES – Digitize receipts, business cards, plastic or embossed cards, reports, legal documents, and more
  • FAST AND EFFICIENT – No technical hurdles or complicated setups here; easily scan both sides of a document at the same time, in color or black-and-white, at up to 12 pages-per-minute, and with a 20 sheet automatic feeder
  • BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer

Choose the PDF layout and page content

Most changes are render options sent with the request. The right settings depend on whether you want a normal printable document or a single continuous page.

Need Setting or behavior What to expect
Standard document pages Leave full_page unset The API’s PDF default is a multipage PDF.
One tall page containing the full page full_page: true Requests the entire website on one single PDF page. This is not the same layout as a normal multipage document.
Only selected pages pdf_page_range Use a range such as 1,3-5 to select pages.
Paper dimensions pdf_page_size Select a standard paper size.
Custom dimensions pdf_page_width and pdf_page_height Specify the page width and height rather than a standard size.
Use the website’s screen appearance media: "screen" PDF rendering uses print styling by default; screen media selects the page’s screen styles instead. Check the resulting document because screen and print layouts can differ.
Headers or footers PDF header options The options reference documents templates with variables such as date, page title, URL, page number, and total page count.

For example, a request body can combine PDF output with screen styling and a selected page range:

Rank #4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
  • IRIScan Express, portable scanner : scans color and black and white documents a blazing speed up to 8ppm simplex. Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • IRIScan Express mobile scanner is powered via an included micro USB 2. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan. USB cable provided. AC Adapter not provided and not needed.
  • IRIScan flatbed scanner uses a simplex scanning mode allows for quick and straightforward scanning of single-sided documents. IRIScan with its full portable features is the ideal document scanners for computers.
  • IRIScan document scanner : Versatile scanning capabilities, including scanning to Word, PDF, and Excel formats with companion software provided Readiris OCR
  • Receipt scanner and card scanner with Additional features include scanning business cards directly to Outlook, photo scanning, and receipt scanning for efficient document management
{
  "url": "https://example.com",
  "format": "pdf",
  "media": "screen",
  "pdf_page_range": "1,3-5"
}

Option names and additional PDF settings are listed in the PDF documentation and render options reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check consent banners and print styles

A cookie or consent banner can occupy space or obscure page content in a full-page capture. Urlbox’s options reference recommends considering click_accept and hide_cookie_banners when banners appear. A site’s print stylesheet can also intentionally omit or rearrange content. Inspect the PDF after rendering and try media: "screen" if the print version leaves out material you need.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep and operate the result reliably

Download temporary results promptly

The synchronous API’s renderUrl expires after 30 days, according to the API reference. Download the PDF to storage you control if you need it past that window. A CLI command with an output path writes the result locally instead.

Best Value
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
  • Scanner type: Document
  • Connectivity technology: USB
  • With Auto Scan Mode, the scanner automatically detects what you're scanning
  • Digitize documents and images

Account for slow renders and repeated requests

The API reference says a long-running synchronous request can return a temporary redirect after 95 seconds. Follow redirects when retrieving the result, and consider the asynchronous workflow for jobs that may run longer. Render endpoint requests are not cached or deduplicated, so an application that retries the same request should not assume the service will reuse an earlier render.

Cost and performance expectations

The documented workflow establishes the request and result behavior, but does not provide a performance benchmark or a price suitable for estimating a particular workload. Avoid assuming a render duration or cost from this example; consult Urlbox’s current pricing page for billing and quota details, which can change.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshoot common capture problems

  • The render cannot load the page: Confirm the URL is publicly accessible to Urlbox and spelled correctly. A private or internal URL is outside the basic URL workflow described here.
  • The saved file is missing or is not the PDF: Check that the API response includes a renderUrl, then download that URL rather than saving the JSON response as the PDF. Use curl -L to follow redirects while downloading.
  • The render URL no longer works: The synchronous result URL is temporary and expires after 30 days. Keep a downloaded copy or use the documented storage approach for longer retention.
  • The PDF is one extremely long page: The CLI pdf shortcut enables full-page capture. Override that setting if you need standard page breaks; the API’s default is multipage.
  • Content is missing or styled differently: PDF output uses print CSS by default. Try media: "screen" and compare, or inspect whether the page’s own print stylesheet intentionally changes the layout.
  • A banner covers content: Consider the documented click_accept and hide_cookie_banners options, then verify the captured content.
  • A synchronous request takes too long: Urlbox documents a temporary redirect after 95 seconds for long-running synchronous requests. Follow redirects, or use the asynchronous render/status or webhook workflow for longer jobs.
  • Retries create extra render requests: Render endpoint requests are not cached or deduplicated. Design retry logic with that behavior in mind rather than expecting repeated requests to collapse into one render.

Or skip the browser setup

If your task is to capture a clean screenshot rather than produce a PDF, ScreenshotNeo offers a one-request screenshot API and an MCP server. Its response can be an image or PDF, but the example below saves a WebP screenshot. See the ScreenshotNeo API docs for request options.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
  • Cookie banners, newsletter popups, and chat widgets are removed before capture; each step can be turned off.
  • Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; the response identifies the page verdict and billing status.
  • An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and MCP clients.
  • The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots.

Sign up for ScreenshotNeo’s free plan to try 1,000 screenshots a month without a card.

Quick Recap

SaleBestseller No. 3
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer; This product is not intended for scanning photographs on photo paper / photographic media
$153.00
Bestseller No. 4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
Find our Software here : irislink.com/start; IRIScan Express is only compatible Windows platform and not macintosh
$129.00
Bestseller No. 5
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Scanner type: Document; Connectivity technology: USB; With Auto Scan Mode, the scanner automatically detects what you're scanning
$75.00

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.