October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Capture GST Invoice Webpages as PDFs with Browserless

Browserless can render an invoice URL or HTML as a paginated PDF. Learn how to authenticate, wait for JavaScript-rendered content, and choose /function for a continuous full-page document.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Browserless’s current POST /pdf REST API to render an invoice webpage as a paginated PDF: authenticate with an API token, send either the page URL or raw HTML, and save the returned PDF bytes. If the invoice loads asynchronously, wait for its content before printing. For one continuous page covering the full page height, use Browserless’s /function API instead; the ordinary /pdf endpoint does not provide that layout.

What Browserless captures—and what it does not

Browserless renders a URL or raw HTML in a browser and returns a PDF copy of the displayed content. This is useful for saving an invoice shown in a web application, but PDF capture is separate from creating, registering, or validating a GST e-invoice. A visually complete PDF does not prove legal compliance or e-invoice registration.

As an Amazon Associate I earn from qualifying purchases.

For context, CBIC’s tax-invoice rules enumerate particulars including the supplier’s name, address and GSTIN; a consecutive serial number unique for a financial year; issue date; recipient details where applicable; HSN code or service accounting code; description; quantity and unit for goods; and total supply value. Browserless does not check these fields. See the CBIC Tax Invoice, Credit and Debit Notes rules.

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

Generate a PDF from a URL

Get an API token from your Browserless account dashboard. The current REST PDF endpoint expects the token in the token query parameter. Send a JSON POST request to the /pdf endpoint, supplying url or html—not both. The response is PDF data, so write the response body to a file rather than treating it as JSON.

#1 Best Overall
Epson EcoTank ET-2800 Wireless Color All-in-One Supertank Printer - Black | Cartridge-free print, scan, copy; up to 10 ppm, borderless photo printing; ideal for home and everyday use
  • 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

Endpoint details and supported PDF options are documented in the Browserless PDF API. This current REST API should be preferred over the older BaaS v1 documentation, which says that v1 is no longer actively supported.

Request example

Replace YOUR_TOKEN and the example address with your token and invoice page URL. This example assumes the page is directly accessible to the browser session Browserless creates.

Rank #2
Sale
Epson EcoTank Photo ET-8550 Wireless Wide-Format All-in-One Tank Printer
  • 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⁴
curl -X POST 'https://production-sfo.browserless.io/pdf?token=YOUR_TOKEN' 
  -H 'Content-Type: application/json' 
  --data '{"url":"https://example.com/invoice/123","options":{"format":"A4","printBackground":true,"displayHeaderFooter":false}}' 
  --output invoice.pdf

Browserless documents options such as paper format, margins, headers and footers, and background printing. Set them according to the invoice’s layout: backgrounds may contain important colors or shading, while headers and footers can add print metadata. See the PDF API options for the supported request shape.

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.

Render raw HTML instead

When you already have the invoice markup, send it in the request’s html field instead of url. Do not include both fields. This approach renders the supplied document; it does not fetch or authenticate into the invoice application on your behalf.

Rank #3
HP Smart Tank 5000 Ink Tank Printer | 2 Years of Ink Included | All-in-One
  • 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.
curl -X POST 'https://production-sfo.browserless.io/pdf?token=YOUR_TOKEN' 
  -H 'Content-Type: application/json' 
  --data '{"html":"<html><body><h1>Invoice</h1><p>Invoice content</p></body></html>","options":{"format":"A4","printBackground":true}}' 
  --output invoice.pdf

Make sure a dynamic invoice has finished rendering

Invoice applications often populate content with JavaScript after the initial page load. Printing immediately can produce a PDF with missing line items, totals, or other late-rendered content. Choose a readiness condition that matches the invoice page: ideally wait for a stable selector that appears only once the invoice is ready. Browserless’s PDF guidance recommends waiting for elements to load to avoid incomplete output; the selector and any required authentication depend on the invoice site. See Browserless PDF Generation.

Browserless documents waits and navigation-related configuration across its REST APIs. Use an explicit wait appropriate to the page rather than assuming the initial navigation means the invoice is ready. The endpoint overview is in the Browserless REST APIs documentation. After capturing, open the PDF and check that it contains the intended invoice data and page layout.

Rank #4
Sale
NDYIN Portable Printers Wireless for Travel, N80 Bluetooth Thermal Printer
  • 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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose paginated PDF or a continuous full-page document

The ordinary /pdf endpoint is for normal paginated print output. It does not support a single continuous PDF page sized to the entire webpage height. If you specifically need a long, continuous page, use Browserless’s more flexible /function API and implement custom height calculation. That option requires custom browser logic rather than simply changing a normal /pdf setting. Consult the PDF API documentation for its guidance on this limitation.

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

Troubleshooting incomplete or unusable PDFs

  • The response is not a PDF: Confirm the request targets the current /pdf REST endpoint, uses POST, includes a valid token query parameter, and sends JSON. Save the binary response body to a file.
  • The invoice is blank or missing fields: The page may render asynchronously. Add a wait for an invoice-specific element that appears after the content is ready; do not rely only on initial navigation completing.
  • The site requires a login: Browserless can only render a page it can access using the authentication flow and session details you provide. The exact login or session approach depends on the invoice application; verify access before diagnosing PDF settings.
  • The output splits content across pages: That is normal for paginated PDF output. Adjust paper format and margins if the print layout needs tuning. If the requirement is one continuous page for the full page height, implement the capture with /function, not the standard /pdf route.
  • Background colors or print details are missing: Review printBackground, displayHeaderFooter, and the relevant paper and margin options in the PDF API documentation.
  • The PDF looks complete but GST status is uncertain: Browser rendering only saves what is displayed. Check invoice particulars against applicable requirements separately, and use the relevant GST e-invoice process if registration or validation is required.

Or skip the browser setup

For a straightforward website screenshot or PDF capture, ScreenshotNeo offers a one-request API. It returns screenshots or PDFs and can remove cookie-consent banners, newsletter popups, and chat widgets before capture; those cleanup steps can be turned off. Its response identifies page verdict and billing status, and bot checks, blank pages, timeouts, failed loads, and cache hits are not billed. An MCP server provides screenshot tools for AI agents. This is an alternative capture service, not a GST invoice generator or validator.

Use your ScreenshotNeo API key in place of YOUR_API_KEY; the code and API details are in the ScreenshotNeo documentation.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/invoice/123 -o shot.webp

The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for the free plan and try ScreenshotNeo.

Keep PDF capture separate from e-invoice integration

If the goal is to generate or register e-invoices rather than save an already displayed webpage, PDF capture is the wrong workflow. The GST e-Invoice Portal describes direct API integration as a separate process requiring GSTIN registration and distinct taxpayer and API-integrator users. It characterizes that integration as suited to taxpayers with internal IT teams, large transaction volumes, and real-time e-invoice generation. See the portal’s E-invoice API Integration guidance.

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

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.

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

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.