To convert a live webpage or HTML you already have into a PDF, send the URL or markup to a browser-rendering API, set the page layout and wait behavior, then save the returned PDF or retrieve it from the provider’s job workflow. The right implementation depends on whether you need a direct response or asynchronous jobs, and which print controls your page requires.
Choose the input: a URL or HTML
Use a URL when the page is already available online and the rendering service can reach it. Use HTML input when your application has generated or assembled the markup. Cloudflare Browser Run’s PDF endpoint accepts either url or html; other services may support a narrower set of inputs, so check the selected API’s documentation before building around it.
As an Amazon Associate I earn from qualifying purchases.
For a URL, the browser-rendering service loads the page before printing it. For HTML, make sure any required styles, images, fonts, and scripts can also be resolved by the rendering environment. A self-contained document or externally reachable assets can help avoid missing content.
Choose an API workflow that fits your application
Screenshot APIs and PDF services do not all deliver output the same way. A direct endpoint can return a PDF response to save immediately. A job-based API may require uploading an input asset, submitting a job, polling for completion, and downloading the result.
#1 Best Overall
- INNOVATIVE CARTRIDGE-FREE PRINTING — No more dealing with lots of tiny ink cartridges; With this wireless document and photo printer each ink bottle set is equivalent to about 90 individual cartridges²
- LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; When you choose this combination printer, scanner and copier you can print up to 4,500 pages black/7,500 color³
- COLOR PRINTING — Up to 2 years of ink in the box4 (and with every replacement ink set) for fewer out-of-ink frustrations
- ZERO CARTRIDGE WASTE — By using an Epson EcoTank printer you can help reduce the amount of cartridge waste ending up in landfills
- HOME PRINTER DESIGNED FOR RELIABILITY — The Epson EcoTank ET-2800 All-in-One Supertank Color Printer creates vivid, detailed prints and documents thanks to Micro Piezo Heat-Free Technology; Fire off 10 ISO pages per minute1 to easily finish large jobs
| Service | Documented workflow and input | Relevant documented details |
|---|---|---|
| Cloudflare Browser Run | REST POST to the PDF endpoint or use Workers Bindings; accepts a URL or raw HTML. |
REST uses a bearer API token and account identifier; the documented request-body maximum is 50 MB. The endpoint returns a generated PDF. |
| Adobe PDF Services | Upload an input asset, submit an HTML-to-PDF job, poll its status, and retrieve the output content. | The REST example uses an API key and bearer token and exposes page-layout and header/footer settings. |
| ScreenshotCore | Render a URL or HTML as PDF. | Its documentation describes paper size, orientation, margins, print media, and response choices. |
| HTMLPDF.dev | POST /api/pdf with a URL or HTML. |
Its documentation lists format, margins, print background, CSS media type, waits, and response type. |
Compare the exact integration requirements: supported input, synchronous response versus job polling, credentials, page geometry and print-CSS controls, delayed-content handling, request limits, and output delivery. The cited documentation does not establish which service renders more accurately, costs less, or has better uptime or support.
Set the PDF layout and print behavior
Before implementing the request, decide how the output should paginate. Page size, orientation, margins, backgrounds, print media, and headers or footers can materially change the result. Use the provider’s own parameter names and supported values; similarly named options are not necessarily interchangeable.
- Page size and orientation: Choose the paper dimensions and portrait or landscape layout appropriate for the document.
- Margins: Set margins deliberately, especially when the page uses edge-to-edge backgrounds or compact tables.
- Print styles and backgrounds: Confirm whether the API uses print or screen media and whether background graphics are included. CSS print rules can hide or restyle elements.
- Headers and footers: If required, check whether the provider supports them and how their layout is configured.
- Page ranges and breaks: Where available, use page-range controls or CSS page-break rules for long reports.
Wait for dynamic page content
A page can appear loaded before its client-rendered text, charts, fonts, or images are ready. Use a provider-supported load condition, selector wait, or delay when the content depends on JavaScript or asynchronous requests. Avoid assuming that one fixed delay is suitable for every page.
Cloudflare’s documented example waits until there are no more than two network connections for at least 500 ms, with a maximum wait of 4500 ms before rendering. Those values describe that example, not a universal recommendation or a setting that should be copied into another provider’s API.
Rank #2
- CARTRIDGE-FREE PRINTING — Print lab-quality photos, graphics and creative projects; Get vibrant colors and sharp text with Epson's high-accuracy printhead and Claria ET Premium 6-color inks
- INK BOTTLES — Save on photos1 and creative projects with affordable in-house printing; All-in-one printer allows you to print 4" x 6" photos for about 4 cents each vs. 40 cents with traditional ink cartridges1
- LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; Printer, scanner and copier lets you print up to 6,200 color pages³
- PRINT FOR LONGER — Up to 2 years of ink in the box² (and with every replacement ink set) for fewer out-of-ink frustrations with this wireless printer
- ZERO CARTRIDGE WASTE — Epson EcoTank printer helps reduce the amount of cartridge waste ending up in landfills; Cartridge-free printer uses high-yield ink bottles; Each replacement ink bottle set is equivalent to about 100 individual ink cartridges⁴
For important outputs, inspect sample PDFs built from representative pages, including pages with the real fonts, images, tables, page breaks, and dynamic content your application uses.
DIY example: Cloudflare Browser Run PDF endpoint
The following cURL request uses Cloudflare’s documented REST endpoint. Replace the account ID and token, and point url at a page the browser service can reach. The response is written to page.pdf.
curl -X POST "https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-run/pdf"
-H "Authorization: Bearer <apiToken>"
-H "Content-Type: application/json"
--data '{"url":"https://example.com"}'
--output page.pdf
For HTML input, use the same endpoint and authentication headers, but send an html field instead of url. The endpoint requires one of those inputs. Cloudflare also documents optional CSS injection. Its documented maximum request body is 50 MB; this is specific to Cloudflare’s PDF endpoint and should not be applied to other services.
Free tools Windows power users keep installed
One-click scans. No signup required.
Cloudflare also offers a Workers Bindings path; its binding call does not require an API token. For Adobe PDF Services, follow the documented asset-upload, job-submit, poll, and content-retrieval sequence rather than expecting a direct PDF response from a single request.
Rank #3
- SET IT UP ONCE AND PRINT WITH CONFIDENCE. No complicated maintenance. Just easy, reliable printing you can count on.
- INK FOR YEARS. NOT MONTHS. Up to 2 years of ink included. Get thousands of pages of cartridge-free printing. More pages, less hassle
- KEEPS PRINTING WELL AFTER COMPETITORS HAVE QUIT. No complex maintenance. Sharper text, richer colors.[2] Only with HP Smart Tank
- PREMIUM SUPPORT - Strong technical expertise to solve issues faster
- THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.
Handle output, errors, and operational costs
Save bytes or retrieve a completed job
With a direct-response endpoint, check the HTTP status and content type before treating the body as a PDF, then save the response bytes. With a job-oriented workflow, track the job identifier, poll according to the provider’s instructions, and download the output asset only after completion. Keep API credentials on a server you control rather than exposing secret tokens in browser-side JavaScript.
Plan for latency and reliability
Rendering time depends on loading and executing the target page, and delayed-content waits can extend a request. Set client timeouts to accommodate the provider’s documented behavior and build error handling around the workflow you use. A synchronous request can be straightforward for an interactive or low-volume task; asynchronous jobs are a natural fit when the provider requires them or when the application should manage completion separately.
Check service-specific limits and commercial terms
Cloudflare documents a 50 MB maximum request body for its PDF endpoint. The cited documentation does not establish current comparative pricing, data-retention terms, privacy terms, or render-quality benchmarks for the providers listed here. Check each provider’s current documentation and service terms for limits and costs before deploying.
Recommended Free Tools
Troubleshooting common PDF problems
- The response is an error or not a PDF: Check the HTTP status and response body first. Verify the endpoint, account ID, authentication header, content type, and required input field.
- Neither the URL nor HTML is accepted: Cloudflare requires one of
urlorhtml. Confirm that your JSON uses the exact field name and that the request body is valid. - The page is blank or incomplete: Confirm the URL is reachable from the rendering service and that your HTML’s dependent assets can load. Add an appropriate wait condition for content that appears after initial page load.
- Charts, images, or fonts are missing: Check whether those assets require authentication, rely on browser-only state, or load after the current wait condition. Configure the appropriate headers or cookies if the API supports them, and wait for a reliable selector or other documented condition.
- Print layout differs from the browser view: Check print-media behavior, background settings, margins, page dimensions, and print-specific CSS. A screen layout may intentionally change when printed.
- A large HTML request fails: Reduce or externalize content where appropriate, and verify the selected provider’s request-size limit. Cloudflare’s documented ceiling is 50 MB for its PDF endpoint only.
- A job result is not immediately available: In a job-based API, poll for completion as documented and retrieve the output asset after the job is ready; do not treat submission as completion.
Or skip the browser setup
ScreenshotNeo is a website screenshot API that can return a PDF as well as image formats. Its one-call API can generate a PDF from a URL:
Rank #4
- Wireless Bluetooth Printer: Portable thermal printer compatible with iPhone, Android phones, iPad and tablet computers via Bluetooth. For smartphones, please download the "Nada Print" App. You can also connect to laptops and computers for printing using a USB-C cable. (Note: Laptops and computers can only be connected via USB and require the installation of a driver first. Bluetooth connection is not supported.)
- No-ink printing: Only supports US Letter and A4 size thermal paper.(Doesn't support regular paper) The no-ink portable thermal printer uses direct thermal technology, requiring no ink, toner or ribbons, making it environmentally friendly, cost-effective and time-saving. The thermal printer package comes with a roll of US Letter thermal printing paper. Note: When installing the paper, remember to switch the paper size switch on APP
- Clear Print: NDYIN N80 portable thermal printer adopts high-definition printing technology, with a 203DPI resolution to provide you with clear printing results. This mobile printer is compatible with roll paper, folded paper and tattoo transfer paper, supporting printing from your mobile phone PDF, Word, pictures and web pages anytime and anywhere. It is recommended to use our NDYIN thermal paper to achieve good printing quality
- Portable wireless printer for travel: The thermal printer is equipped with a built-in 1500mAh rechargeable battery, which can print 160 sheets of 8.5" x 11" thermal paper after being fully charged. It weighs only 1.5 pounds and is compact in size. This ink-free portable printer can be easily carried in a backpack or briefcase! It is perfect for business travel, cars, small offices, construction sites, schools and homes. You can print documents, contracts, invoices and boarding passes anytime and anywhere
- The N80 thermal printer has a wide range of uses. The package includes the N80 printer, a roll of US Letter paper(7m/roll), a user manual, a guide card, a type-C soft cable and a type C adapter. Note: The charging adapter is not included. Special thermal paper is required for use; ordinary paper cannot be used. This ink-free portable thermal printer is suitable for various scenarios such as home, school, travel, office, and outdoor, meeting the printing needs of different groups of people. This tattoo template printer is also compatible with tattoo transfer paper, making it an ideal choice for tattoo art
curl -G "https://api.screenshotneo.com/v1/shot"
-d access_key=YOUR_API_KEY
--data-urlencode url=https://example.com
-d format=pdf
-o page.pdf
See the ScreenshotNeo API documentation for PDF options and request parameters. ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. It also has an MCP server with take_screenshot, get_page_info, and capture_pdf tools for AI agents. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan to try 1,000 screenshots a month with no card.
Frequently Asked Questions
Can a screenshot API turn raw HTML into a PDF, or only a live webpage?
Some support raw HTML as well as URLs. Cloudflare Browser Run’s documented PDF endpoint accepts either input; verify support with any other provider before choosing it.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Does a PDF endpoint always return the finished file immediately?
No. A direct endpoint may return PDF bytes in its response, while a job-based service can require an upload, submission, polling, and a separate output download.
Is Cloudflare’s 50 MB request limit shared by other PDF APIs?
No. The 50 MB maximum is documented for Cloudflare Browser Run’s PDF endpoint and should not be generalized to other services.
Quick Recap
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.




