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

Set the page’s document language and base direction to Arabic and right-to-left, then capture it with Chrome Headless. For a quick viewport image, use Chrome’s --screenshot flag with an explicit --window-size. For scripted, full-page, or element captures, use Puppeteer. The screenshot tool cannot fix incorrect page direction, unloaded content, or unavailable Arabic fonts.

Set the page language and direction

For a page whose overall content is Arabic and right-to-left, declare both language and direction on the root HTML element:

<html lang="ar" dir="rtl">

lang="ar" identifies the document language; dir="rtl" sets its base text direction. These declarations are separate: do not assume that Arabic language alone establishes direction. The W3C recommends using the HTML dir attribute to set base direction, rather than CSS, and using lang to identify the language. See the W3C guidance on text direction.

Arabic pages often contain Latin text, numbers, or URLs. Those runs may need their own direction handling; a document-wide RTL setting does not make every mixed-script fragment behave as intended. Review the rendered page, especially inline codes, identifiers, and links. The W3C guide to inline bidirectional markup explains the issue.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Epson Workforce ES-50 Compact & Lightweight Mobile Document Scanner
  • 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

Capture a viewport from the command line

Use Chrome Headless’s screenshot flag and specify the window dimensions to make the viewport and responsive layout predictable:

chrome --headless --screenshot --window-size=1280,1000 --timeout=5000 'https://example.com/'

Replace the URL and dimensions with your target page and desired viewport. Chrome saves the image as screenshot.png in the current working directory. The --timeout value is a maximum wait in milliseconds before capture, not proof that every asynchronous asset has finished loading. Adjust it to suit the page, and check the resulting image. See Chrome’s Headless mode documentation.

Use Puppeteer for scripts and full-page captures

Puppeteer gives you navigation control and documented screenshot options, including full-page capture. This runnable ES module opens the URL, sets a viewport, waits for a navigation condition, captures the full page, and closes Chrome even if capture fails:

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 puppeteer from 'puppeteer';

const browser = await puppeteer.launch();
try {
  const page = await browser.newPage();
  await page.setViewport({ width: 1280, height: 1000 });
  await page.goto('https://example.com/', { waitUntil: 'networkidle2' });
  await page.screenshot({ path: 'arabic-page.png', fullPage: true });
} finally {
  await browser.close();
}

Install Puppeteer in your project and run this as an ES module. Replace the example URL with your page. For a viewport-only screenshot, omit fullPage: true; it defaults to false. Puppeteer also documents element screenshots through ElementHandle.screenshot(), and clipping through the clip option. Consult the Puppeteer screenshot guide and screenshot options reference. Pin the Puppeteer version used in production and consult documentation matching that version, since the live API reference may change.

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.

Choose the capture scope

What you need Practical choice Key consideration
One viewport image Chrome Headless CLI Set an explicit window size; output goes to the current working directory.
Repeatable scripted capture Puppeteer Control navigation, page setup, and screenshot options.
Entire document Puppeteer with fullPage: true The option is explicitly documented; the cited Chrome CLI documentation does not establish a full-page switch.
One element or region Puppeteer element screenshot or clip Ensure the target is visible and positioned where the capture expects it.

Make sure the rendered page is ready

A successful command only means a capture was produced; it does not guarantee the page is complete or typographically correct. Before relying on the image, check the exact runtime and page state:

  • Confirm the root HTML has lang="ar" and dir="rtl" when the whole page is Arabic RTL.
  • Inspect Arabic mixed with Latin text, numbers, and URLs, which are bidirectional rather than uniformly RTL.
  • Choose the viewport explicitly so the layout and output dimensions are repeatable.
  • Wait for the content and fonts that matter. Chrome’s timeout is only a maximum wait; Puppeteer navigation conditions help coordinate capture but do not establish that every application-specific asset is ready.
  • If glyphs are missing or inconsistent, verify Arabic coverage in the fonts available in the same operating system or container that runs Chrome. The cited documentation does not prescribe a universal font package or guarantee identical fallback across environments.

Troubleshoot common Arabic screenshot problems

The page reads or aligns left-to-right

Check the rendered document’s root element for dir="rtl"; lang="ar" identifies the language but does not set the base direction. Prefer the HTML direction attribute over CSS for the document’s base direction.

Rank #3
Sale
Epson Workforce ES-400 II High-Speed Color Duplex Desktop Document Scanner
  • FAST DOCUMENT SCANNING — Document scanner with feeder allows you to speed through stacks with a 50-sheet Auto Document Feeder (ADF); Efficient office scanner to help you scan more productively
  • INTUITIVE, HIGH-SPEED SOFTWARE — Quickly scan with this desktop document scanner; Epson ScanSmart Software lets you easily preview scans, email files, upload to the cloud, and more; Plus, automatic file naming saves even more time
  • SEAMLESS INTEGRATION — Easily incorporate your data into most document management software with the included TWAIN driver; Office document scanner integrates seamlessly with business workflows
  • EASY SHARING — Duplex scanner allows you to scan straight to email or popular cloud storage2 services like Dropbox, Evernote, Google Drive, and OneDrive for simple storage and sharing
  • SIMPLE FILE MANAGEMENT — Scanner allows the creation of searchable PDFs with Optical Character Recognition (OCR) and convert scans to editable Word or Excel files effortlessly; Designed for home and office document scanning

Arabic and Latin fragments appear in the wrong order

Inspect the individual mixed-script fragment rather than changing the entire page direction. Arabic, Latin strings, numbers, and URLs participate in bidirectional layout; use appropriate inline markup and validate the rendered result.

The capture is clipped or the responsive layout is unexpected

Set the viewport explicitly with --window-size in the CLI or page.setViewport() in Puppeteer. If the goal is the entire document, use Puppeteer’s fullPage: true; for a particular part, use an element screenshot or clip.

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

Images, text, or web fonts are missing

Wait for the relevant page content and fonts before capture. A fixed CLI timeout may expire while asynchronous work is still underway. For font problems, check the installed fonts and page styling in the capture environment itself; available glyphs and fallback differ by runtime, and there is no universally specified Arabic font package in the cited guidance.

Rank #4
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

The CLI command produces no image where expected

Chrome writes screenshot.png in the process’s current working directory. Check that directory and confirm the command has reached its capture point; the timeout specifies an upper wait, not a successful-load guarantee.

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

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. For a one-call capture, send a GET request with the page URL and your API key:

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

See the ScreenshotNeo documentation for request options. Its pre-capture cleanup accepts cookie and consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers identify the page verdict and billing status. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools 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.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

Sign up for ScreenshotNeo and get 1,000 screenshots a month free, with no card required.

Best Value
Sale
ScanSnap iX2500 Wireless or USB High-Speed Document Scanner, Black
  • OUR MOST ADVANCED SCANSNAP. Large touchscreen, fast 45ppm double-sided scanning, 100-sheet document feeder, Wi-Fi and USB connectivity, automatic optimizations, and support for cloud services. Upgraded replacement for the discontinued iX1600
  • CUSTOMIZABLE. SHARABLE. Select personalized profiles from the touchscreen. Send to PC, Mac, mobile devices, and clouds. QUICK MENU lets you quickly scan-drag-drop to your favorite computer apps
  • STABLE WIRELESS OR USB CONNECTION. Built-in Wi-Fi 6 for the fastest and most secure scanning. Connect to smart devices or cloud services without a computer. USB-C connection also available
  • PHOTO AND DOCUMENT ORGANIZATION MADE EFFORTLESS. Easily manage, edit, and use scanned data from documents, receipts, photos, and business cards. Automatically optimize, name, and sort files
  • AVOIDS PAPER JAMS AND DAMAGE. Features a brake roller system to feed paper smoothly, a multi-feed sensor that detects pages stuck together, and skew detection to prevent paper damage and data loss

Frequently Asked Questions

Can Chrome Headless’s CLI capture a full page with `–screenshot`?

The cited Chrome Headless documentation establishes the screenshot flag but does not document a full-page CLI switch. Puppeteer documents `fullPage: true`.

Does setting `lang=”ar”` make a page right-to-left?

No. Use `dir=”rtl”` for the document’s base direction and `lang=”ar”` to identify Arabic.

Quick Recap

Bestseller No. 4
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.

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