Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk7 min

How to Generate Event Listing Screenshots and PDFs with a Screenshot API

Choose a viewport, full-page, or event-card capture, then save an image or PDF. This guide shows Playwright code, PDF print-style considerations, and when a hosted screenshot API fits.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To save an event listing, render its URL in a browser and capture the visible viewport, the full scrollable page, or a specific event card; request PDF output when you need a document. Use Playwright when you need control over a browser you operate, or a hosted screenshot API when the URL and capture options describe the job. If the listing requires login, clicks, or a sequence of actions, use browser automation with state rather than assuming one URL request can reach it.

Choose what the saved file needs to show

Decide on the capture boundary before choosing settings. A viewport screenshot records what is visible at the selected browser dimensions. A full-page screenshot captures the scrollable page. An element screenshot isolates a chosen component, such as one event card. Playwright documents all three approaches in its screenshot guide.

As an Amazon Associate I earn from qualifying purchases.

  • Viewport: Use it when the saved image should represent a desktop or mobile screen as a visitor sees it.
  • Full page: Use it when the event details or listings continue below the fold.
  • Element: Use it when only a particular listing or card belongs in the image. Confirm the selector identifies the intended element after the page loads.

A screenshot and a PDF are different outputs. Screenshots are images with framing, format, and scaling choices. PDFs use a page layout and may follow print-specific styling.

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

Decide whether a URL-only request is enough

A hosted rendering API is a fit when the page can be described as a URL plus capture settings. It avoids having to operate the browser process yourself. For a workflow involving login state, clicks, repeated actions, or continued use of the same browser, use a browser session or automation script instead. Capture documents this distinction between single-request APIs and browser sessions in its API overview; check the chosen provider’s current authentication and option support before building around it.

#1 Best Overall
Sale
Epson Workforce ES-50 Compact & Lightweight Mobile Document Scanner | For Computers including PC and Mac Receipt and Document Scanner USB Powered
  • 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
  1. Start with the canonical event listing URL.
  2. List the details the saved file must contain: for example, event name, date and time, venue, and any attendance or booking information relevant to the reader.
  3. Check whether those details are visible without signing in or interacting with the page. If not, plan an interactive session.
  4. Choose viewport, full-page, or element capture, then choose image or PDF output.

Capture an event listing with Playwright

Playwright’s documented JavaScript API can save a screenshot to a file, capture the full scrollable page, or take a screenshot of a locator. Install Playwright and its browser following the official installation guide, then save this as capture-event.mjs and run it with node capture-event.mjs. Replace the example URL with the event page. Set SELECTOR to a real CSS selector to capture one component; leave it empty for a page capture.

import { chromium } from 'playwright';

const url = 'https://example.com/events';
const selector = ''; // Example: '.event-card'

const browser = await chromium.launch();
try {
  const page = await browser.newPage({
    viewport: { width: 1440, height: 1000 },
    deviceScaleFactor: 1,
  });
  await page.goto(url, { waitUntil: 'networkidle', timeout: 60000 });

  if (selector) {
    await page.locator(selector).screenshot({ path: 'event.png' });
  } else {
    await page.screenshot({ path: 'event.png', fullPage: true });
  }
} finally {
  await browser.close();
}

The example waits for network activity to settle before capturing, but pages with ongoing requests may not reach that condition promptly. If appropriate for the site, use another documented page.goto wait condition and explicitly wait for the event element or content you need. Locator screenshots are useful for isolating a component; the locator must resolve to the intended element.

Generate a PDF with Playwright

PDF output uses print CSS media by default. If the event page should use its screen styling instead, select screen media before generating the PDF. Playwright’s Page API reference documents PDF generation and options including paper format or dimensions, margins, print backgrounds, and scale.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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)
import { chromium } from 'playwright';

const url = 'https://example.com/events';
const browser = await chromium.launch();
try {
  const page = await browser.newPage();
  await page.goto(url, { waitUntil: 'networkidle', timeout: 60000 });

  // Omit this line if print CSS is the desired PDF layout.
  await page.emulateMedia({ media: 'screen' });
  await page.pdf({
    path: 'event.pdf',
    format: 'A4',
    printBackground: true,
    margin: { top: '12mm', right: '12mm', bottom: '12mm', left: '12mm' },
  });
} finally {
  await browser.close();
}

Use the option names supported by the Playwright language binding and version in your project; the reference covers the current API details. If the page’s print stylesheet is intended to produce a document-friendly layout, keep the default print media rather than forcing screen media.

Or skip the browser setup

For a URL-and-options capture, ScreenshotNeo provides a screenshot API and MCP server for developers. This cURL example saves an event listing as a WebP image; replace the URL and provide your API key. See the ScreenshotNeo documentation for request options, including PDF settings.

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

ScreenshotNeo accepts cookie or consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server includes take_screenshot, get_page_info, and capture_pdf for AI agents. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots, and every feature is on every plan. Visit ScreenshotNeo for product details, or sign up free.

Inspect the file before you rely on it

Rendering success does not by itself confirm that the right event details made it into the artifact. Open the saved image or PDF and check:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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
  • The event name, date, time, and venue are present and legible.
  • The capture includes the intended listing or card, without cutting off important content.
  • For a PDF, page breaks, margins, background colors, and print styling suit the intended use.
  • The listing is current and came from the canonical event URL, especially if it is being archived or shared.

Troubleshoot common capture problems

The event card is missing

Check that the listing is actually present on the page and that the locator or CSS selector matches it. If content appears after interaction, a URL-only render may not reach it; use a browser workflow that performs the required actions.

The capture is blank or incomplete

Confirm the URL loads in the same environment and that the script waits for the relevant content, not merely the initial navigation. Pages that load content later may require waiting for a specific selector or a suitable delay. For hosted APIs, check the provider’s response and available timing controls.

The PDF looks different from the page

Playwright uses print CSS media for page.pdf() by default. If the intended output should use screen styles, call page.emulateMedia({ media: 'screen' }) before generating the PDF; otherwise, inspect the page’s print stylesheet and adjust the PDF layout options.

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

The capture hangs or times out

A page may keep network requests active or take longer than the configured timeout. Choose a navigation wait condition suitable for the page and wait for the required content explicitly. For a hosted API, consult its timing controls and response status rather than assuming a file was successfully rendered.

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

The result is hard to read

Reconsider the capture boundary and dimensions. A long full-page image may make text small when viewed at once; an element capture or a PDF with suitable paper layout may better fit the use. Inspect the actual saved artifact at its intended viewing size.

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

Performance, reliability, and cost considerations

With Playwright, you run and maintain the browser automation and decide how to handle navigation, state, and output. A hosted API moves browser operation behind a request interface, but available options, authentication, and failure reporting vary by provider. The documentation cited here establishes the available workflows and controls; it does not provide a neutral comparison of cost, speed, uptime, or capture accuracy. Estimate cost from the provider’s current pricing and your actual capture volume, and test representative event pages before relying on a workflow at scale.

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

For either approach, retain enough information to reproduce a useful artifact: the source URL, chosen viewport or page layout, capture boundary, and relevant timing or interaction steps. A capture is a rendering of a page at a particular time, not proof that event details remain current afterward.

Frequently Asked Questions

Can I capture just one event card instead of the whole page?

Yes. In Playwright, take a screenshot of a locator that identifies the event card, or use a provider’s element-capture option if it supports one.

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

Why does a Playwright PDF differ from my browser screenshot?

PDF generation uses print CSS media by default. The page may have print-specific styles; select screen media before generating the PDF only if screen styling is what you want.

When should I use a browser session rather than a single screenshot request?

Use a browser session or automation when the event page needs login, clicks, or repeated actions in the same browser. A URL-and-options request fits captures that can be specified up front.

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
Crashes, No Sound, or Screen Glitches?Free driver 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.