If Html2Pdf.app returns a PDF that looks blank, first check that the request actually succeeded and that your code saved the response as binary bytes. Then verify that the renderer can reach the source page and its assets, and test whether the page needs more time or a different CSS media mode. A blank-looking file can come from the input, rendering conditions, or response handling—not one universal setting.
1. Check the response before treating it as a PDF
Html2Pdf.app documents a synchronous success response as PDF binary data. Check the HTTP status before writing the response body to a file; do not parse it as JSON or convert it to text. The API uses POST https://api.html2pdf.app/v1/generate and an X-API-Key header. Its documentation says conversions run in headless Chromium, providing support for modern HTML, CSS, and JavaScript (Html2Pdf.app documentation).
| Status | Documented meaning | What to do |
|---|---|---|
| 400 | Inaccessible source URL or invalid parameter | Check the URL, required html field, and option values before retrying. |
| 401 | Missing or invalid API key | Send a valid key in the X-API-Key header. |
| 403 | Account plan limit | Check the account limit; repeated retries will not correct a plan restriction. |
| 500 | Unhandled server error | Inspect the response and retry cautiously; the documentation does not specify a guaranteed recovery time. |
| 202 | Accepted/queued when using callBackUrl |
Wait for the callback result; this initial response is not the completed PDF. |
The documented error meanings and recommended responses are in the API reference. A non-success response may contain an error body, so saving every response with a .pdf extension can hide the real failure.
2. Confirm the renderer can access the page and its assets
The required html field accepts either raw HTML markup or a publicly reachable page URL. Html2Pdf.app’s troubleshooting guidance says to check that the source URL is public and that required CSS, fonts, and images are reachable by the renderer (Node.js guide; cURL guide).
#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
- For a URL: open it without relying on your logged-in browser session. Check whether redirects lead to a login screen or another inaccessible destination. These are practical checks of the documented public-reachability requirement, not separate service guarantees.
- For raw HTML: inspect linked stylesheets, fonts, and images. The markup may arrive while its externally hosted assets do not.
- For a minimal test: submit a small HTML document with inline text and styling. If it renders while the original does not, compare external dependencies and page-specific scripts.
Do not assume that because a URL loads on your machine it is available to the rendering service; your browser may have cookies, network access, or permissions that the renderer does not.
3. Test whether content appears after the initial load
When JavaScript or asynchronous resources populate the page after it first loads, Html2Pdf.app’s waitFor option lets you delay PDF generation. The documented range is 0–10 seconds, with a default of 0 (documentation). Try a short delay only when the page’s content is late-arriving; it is a diagnostic, not a fix for inaccessible assets or failed scripts.
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⁴
Compare the same input with the default and with a modest delay. If the output changes, investigate which content is loaded asynchronously and whether it can be made available more reliably. Increasing the delay indefinitely is not possible within the documented range.
4. Compare screen and print CSS
The media option accepts screen or print, and defaults to screen. A page can look different under print styles—for example, a stylesheet may hide elements in one mode. Generate with the mode that matches the intended document and compare the result when the page uses media-specific CSS. The option selects the media mode; it does not repair missing stylesheets.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsRank #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.
5. Save a synchronous PDF without corrupting its bytes
This cURL example sends raw HTML and writes a successful response to a file. Replace the key and HTML as needed. The status check prevents an API error response from being mistaken for a PDF.
curl -sS -D response-headers.txt -o output.pdf
-X POST "https://api.html2pdf.app/v1/generate"
-H "X-API-Key: YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{"html":"<html><body><h1>Hello PDF</h1></body></html>"}'
Inspect the status in response-headers.txt. Only treat output.pdf as a completed PDF when the request succeeded; on an error, examine the response body and correct the documented cause. For a URL input, use that public URL as the value of html. See the official cURL integration guide and parameter reference for the service’s current request details.
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
6. Handle callback mode as a separate response flow
If the request includes callBackUrl, a successful initial response is 202 Accepted, which means the job was queued. It does not contain the finished PDF. The callback JSON contains a base64-encoded document value; decode that value to bytes before writing the PDF. Do not save the 202 response body as the document.
7. A compact diagnostic sequence
- Check the HTTP status and whether the request is synchronous or uses
callBackUrl. - For synchronous success, preserve the response as binary PDF bytes; for callback mode, wait for the callback and decode its base64
document. - Verify that the URL is public or that raw HTML’s stylesheets, fonts, and images are reachable by the renderer.
- If page content is inserted late, compare the default with a suitable
waitForvalue from 0 to 10 seconds. - If the page has print-specific CSS, compare
screenandprintmedia.
Or skip the browser setup
If your goal is a clean screenshot of a page rather than a PDF conversion, ScreenshotNeo is a website screenshot API and MCP server. One GET request returns a PNG, JPEG, WebP, or PDF; its options include viewport and full-page capture, custom CSS and JavaScript, and PDF settings. It is not a replacement for diagnosing Html2Pdf.app’s request or callback behavior.
Example cURL request (see the ScreenshotNeo API documentation):
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 are accepted and removed, along with known newsletter popups and chat widgets; each step can be turned off.
- Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; response headers identify the page verdict and billing status.
- An MCP server provides
take_screenshot,get_page_info, andcapture_pdftools for AI agents and MCP clients. - 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: 1,000 screenshots a month, no card required.
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.




