Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsUse Java Playwright’s Page.screenshot() to save an Indian Railways timetable page as an image. For a capture of content below the visible browser area, set fullPage to true. That option captures the page as it exists; it does not submit a train search or wait for a timetable result to load.
Set up Playwright for Java
Playwright for Java requires Java 8 or higher. Follow the official Java installation guide to add the library and install the browser binaries. Playwright browsers run headless by default, so a visible browser window is not required for a screenshot.
The example below uses Chromium and saves a full-page PNG. It demonstrates the documented Playwright APIs; it does not claim to have submitted a specific train query or captured a live schedule.
Capture the Indian Railways schedule page
The official Indian Railways Passenger Reservation Enquiry Train Schedule page provides a useful target. Its own notice says: “Train Schedule is shown only for reserved trains defined in the PRS system.” The page asks for a few characters of a train name or digits of a train number.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11#1 Best Overall
- 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
import com.microsoft.playwright.*;
import java.nio.file.Paths;
public class CaptureTimetable {
public static void main(String[] args) {
try (Playwright playwright = Playwright.create()) {
Browser browser = playwright.chromium().launch();
Page page = browser.newPage();
page.navigate("https://indianrail.gov.in/enquiry/SCHEDULE/TrainSchedule.html?locale=en2");
page.screenshot(new Page.ScreenshotOptions()
.setPath(Paths.get("timetable.png"))
.setFullPage(true));
browser.close();
}
}
}
Run the class using the build setup from the Java installation guide. The output file, timetable.png, shows the page’s current state. Before treating it as a timetable record, submit a train name or number using the page’s actual controls and wait until the intended result appears.
Submit a query before capturing a result
A screenshot of the initial page is not a schedule result: the page can show an empty result area or an error before a query is made. The National Government Services Portal says its online timetable search accepts at least three characters of a train name or number and returns schedule details such as train name, number, source, running days and destination. The portal listing was last updated April 30, 2026; the live interface and service behavior can change.
Rank #2
- 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)
- Navigate to the schedule page and identify its train-name or train-number input and search control in the current interface.
- Enter the train name or number. The government portal describes a minimum of three characters for its timetable service.
- Submit the query using the page’s control. Do not assume navigation alone triggers a search.
- Wait for the schedule result to appear, then capture the viewport, full page, or result element as appropriate.
The exact control selectors and any result-state marker can change with the website. Inspect the current page before automating those steps; the sample above intentionally captures the page without pretending to know a stable selector or asserting a particular train result.
Choose what part of the page to save
| Capture method | Use it when | Important detail |
|---|---|---|
| Viewport screenshot | You need only what is visible in the browser viewport. | Omit setFullPage(true); full-page mode defaults to false. |
| Full-page screenshot | The schedule or relevant page content extends below the viewport. | Set setFullPage(true). This captures document length, but does not run a search or load missing results. |
| Locator screenshot | You need a bounded schedule table and have a reliable locator for it. | A locator screenshot is limited to the matching element. For a scrollable element, it captures only the currently scrolled content. |
The Java screenshot API can save to a path or return image bytes for further processing. It also supports clipping to a region. Screenshot options include image type, scale, animation handling, masks, timeout and path. Check the Page API reference for the Playwright version installed in your project, because available formats and option details may vary by version.
Rank #3
- 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
For a record meant to be checked or compared later, keep the queried train, capture time, browser/version and viewport settings alongside the image. Those details help explain what live page state and capture configuration the image represents.
Or skip the browser setup
ScreenshotNeo can return a webpage screenshot from one GET request, including PNG, JPEG, WebP or PDF output. It accepts cookie and 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 response headers report the page verdict and billing status. Its MCP server offers take_screenshot, get_page_info and capture_pdf for AI agents.
Use the timetable URL as the target. This one-call example captures the page state; it does not submit a train search, so query the page first if you need a specific schedule result.
Rank #4
- 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
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://indianrail.gov.in/enquiry/SCHEDULE/TrainSchedule.html?locale=en2 -o timetable.webp
See the ScreenshotNeo API documentation for the request options. ScreenshotNeo includes 1,000 screenshots per month free with no card; paid plans start at $5 for 3,000. Sign up for free.
Troubleshooting and reliability
The image contains a search form but no timetable
The page was captured before a query was submitted, or before results appeared. Submit a train name or number in the live interface, wait for the result, and only then call screenshot(). Full-page mode does not perform either step.
Best Value
- Scanner type: Document
- Connectivity technology: USB
- With Auto Scan Mode, the scanner automatically detects what you're scanning
- Digitize documents and images
The image cuts off content below the fold
Enable setFullPage(true) for the whole document. If you instead capture a locator for a scrollable table, scroll that element to the content you need; the locator screenshot shows only its currently scrolled content.
The screenshot call times out
The Page API documents a default screenshot timeout of 30,000 ms. A timeout indicates that the screenshot operation did not complete within its configured limit; consult the API reference matching your installed Playwright version for the timeout option and adjust it only when a longer capture is appropriate. A screenshot timeout is distinct from waiting for the website’s timetable query to finish.
The page or screenshot looks different on another run
The page may have changed, or the capture configuration may differ. Record the queried train, capture time, browser/version, viewport and relevant screenshot options so later readers can interpret the image. Check the current Playwright API docs for version-specific option support.
Recommended Free Tools
Frequently Asked Questions
Can Playwright Java save a screenshot as bytes instead of a file?
Yes. The Java Page screenshot API can return image bytes; use that when you want to process or store the image in your own application rather than write directly to a path.
Does the Indian Railways schedule page show every train?
No. The page states that its train schedule is shown only for reserved trains defined in the PRS system.
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.




