Use Playwright’s page.pdf() to save a webpage as a PDF. For an admission portal, first check whether the school already provides a Print, reprint, or PDF download control; otherwise, navigate to the relevant page, wait for the actual form or application details to appear, and generate an A4 PDF. Playwright renders PDFs with print CSS by default, so review the result for missing backgrounds, clipped fields, and unexpected page breaks.
Check for the school’s own print or PDF option first
Admission portals do not all work the same way. Some provide an intended print or download route that may be preferable to automating a browser print. For example, Pragati School Satana’s 2026-27 admission page directs applicants who already have an Application ID to use its Print control (Pragati School Satana admissions). The Government of NCT of Delhi’s page for the 2026-2027 admission session lists online application and reprint links for some categories (Delhi Directorate of Education). A separate SamarthX portal overview describes application submission followed by PDF download or printing (SamarthX).
As an Amazon Associate I earn from qualifying purchases.
These are examples, not a universal process. If the portal offers a Print, reprint, or PDF button for your application, follow its instructions. It may require an Application ID or a signed-in session. Use Playwright when you need a repeatable browser workflow or the portal has no suitable native export. Only access pages and application records you are authorized to view.
Generate a PDF with Playwright in Node.js
Install Playwright in a Node.js project, then save this as save-admission.js. Replace the example URL with the admission page you are permitted to access.
#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
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
try {
const page = await browser.newPage();
await page.goto('https://example-school.in/admission', {
waitUntil: 'load'
});
await page.pdf({
path: 'admission-page.pdf',
format: 'A4',
printBackground: true
});
} finally {
await browser.close();
}
})();
Run it with node save-admission.js. The example uses the documented page.pdf() API; it has not been tested against a particular school portal. The file is written to the current working directory. Playwright’s official API documentation explains the PDF options and rendering behavior: Playwright Page API: page.pdf().
Wait for the form, not an arbitrary delay
page.goto() waits for the load event by default. For pages that build their form dynamically, a navigation event alone may not mean the admission content is ready. Wait for a visible, page-specific element that indicates the content you need has appeared. For example, if the form has a stable selector such as #admission-form, add this after navigation:
await page.locator('#admission-form').waitFor({ state: 'visible' });
Replace the selector with one that actually exists on the target page. Playwright documents other navigation wait conditions, including domcontentloaded, networkidle, and commit; it cautions that networkidle is discouraged as a general testing readiness signal. Avoid a fixed sleep as a substitute for checking the specific content. The API notes that Playwright auto-waits for actions and that waitForLoadState() is often unnecessary if the requested state has already been reached.
Recommended Free Tools
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)
Handle pages that require sign-in
If an application is behind a login, authenticate through an appropriate authorized session before printing. Do not put passwords, student personal information, or session state into code you share or publish. The example above does not implement a login flow because portals use different authentication systems; use the school’s own instructions and protect any credentials or saved session data.
Choose print media, paper size, and layout options
page.pdf() uses print CSS media by default. This can produce a different layout from the page shown on screen because the site may apply separate print styles. Choose settings based on the document you need, then inspect the PDF rather than assuming the browser view and PDF will match.
| Option | What it controls | When to use it |
|---|---|---|
format: 'A4' |
Uses a documented paper format. | A4 is a practical starting point for an Indian school form intended for printing. |
printBackground: true |
Includes background graphics; background printing is off by default. | Enable it when shaded sections, logos, or other background graphics are needed. |
margin |
Sets page margins. | Adjust when content is too close to the edge or a form is clipped. |
scale |
Scales the printed content. | Use carefully if content does not fit; reduced scale can make text harder to read. |
pageRanges |
Selects pages for output. | Use when only particular pages are needed. |
preferCSSPageSize: true |
Gives CSS @page size priority instead of fitting content to the selected paper size. |
Use when the page’s print CSS defines the size you want; otherwise Playwright scales content to fit the chosen paper size. |
For example, set explicit margins while keeping A4 and backgrounds:
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
await page.pdf({
path: 'admission-page.pdf',
format: 'A4',
printBackground: true,
margin: {
top: '12mm',
right: '12mm',
bottom: '12mm',
left: '12mm'
}
});
If you need the screen layout rather than the print layout, emulate screen media before generating the PDF:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
await page.emulateMedia({ media: 'screen' });
await page.pdf({ path: 'admission-page.pdf', format: 'A4' });
Print rendering can modify colors by default. The page’s CSS can use -webkit-print-color-adjust to request exact colors; you can also enable background graphics with printBackground: true. Whether those choices produce the intended school form depends on the page’s own styles, so verify the saved file.
Inspect the PDF before printing or sharing it
Open the generated file and check the actual document, not just the browser preview. Confirm that the application details are complete and legible, and that the exported pages are appropriate to keep or share.
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
- Check that all required fields, labels, and application details appear and are readable.
- Look for clipped text, cut-off columns, and content too close to the paper edge.
- Check page breaks, blank pages, and whether a long form is split in a usable place.
- Confirm that required logos, shaded sections, and other background graphics are present.
- Before sharing or printing, check for personal information that should remain private.
Common problems and fixes
| Symptom | Likely cause | What to try |
|---|---|---|
| The PDF is blank or the form is missing. | The content loads after the navigation event, or the page requires authentication. | Wait for a visible element that marks the needed form as ready, and confirm you have an authorized signed-in session if required. |
| Colors, shaded sections, or logos are absent. | Background graphics are disabled by default, or print CSS omits or changes them. | Set printBackground: true; inspect the print styles and saved PDF. |
| Fields are cut off or the layout is unexpectedly small. | The page’s print layout, paper size, margins, scale, or CSS page size does not suit the form. | Try A4, adjust margins or scale, and decide whether preferCSSPageSize should follow the page’s @page rules. |
| The PDF differs from the screen. | PDF generation uses print media by default, and print CSS may change the page. | Use print rendering if that is the intended document; use page.emulateMedia({ media: 'screen' }) first only when a screen-style PDF is desired. |
| Automation waits too long or captures incomplete dynamic content. | A generic event such as load or networkidle does not reliably signal that the specific form is ready. |
Wait for the page-specific form or status element instead of adding a fixed delay. |
| The school’s reprint control is unavailable. | The portal may require an Application ID, a particular admission category, or a signed-in session; available routes differ by school and portal. | Follow that school’s instructions or use Playwright only if you are authorized to access the page. |
Or skip the browser setup
ScreenshotNeo can return a PDF from one GET request, without setting up Playwright. See the ScreenshotNeo API documentation.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example-school.in/admission -o admission-page.pdf
Request a PDF using the API’s PDF options for paper size and margins. ScreenshotNeo’s documented feature set also includes waiting for a selector, delay, or network idle; custom CSS and JavaScript; cookies and custom headers; and PDF page ranges. Review the API documentation for the request parameters appropriate to your portal. The school page must still be accessible to the request; use authorized access for any protected application.
Free tools Windows power users keep installed
One-click scans. No signup required.
- Cookie banners are accepted and removed before capture, along with known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off.
- Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed; responses identify the page verdict and billing status in headers.
- An MCP server provides
take_screenshot,get_page_info, andcapture_pdffor AI agents and other MCP clients. - The Free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots.
Sign up for ScreenshotNeo’s free plan.
Performance, reliability, and cost considerations
For a one-off school application, the school’s own print or download function may require less setup and is designed for that portal’s process. Playwright is useful when you need to repeat the same capture or control browser print settings in code. It still depends on the page loading correctly and on the browser rendering the site’s print styles; inspect output and handle failures in your own workflow. The example closes the browser in a finally block so the browser process is closed if navigation or PDF generation throws an error. No school-specific page or login flow is assumed here.
Best Value
- Scanner type: Document
- Connectivity technology: USB
- With Auto Scan Mode, the scanner automatically detects what you're scanning
- Digitize documents and images
ScreenshotNeo provides a managed API alternative when you do not want to install and run a browser for each capture. Its pricing is monthly: Free, 1,000 shots; Starter, $5 for 3,000; Growth, $15 for 15,000; Pro, $39 for 60,000; Scale, $99 for 250,000; and Business, $249 for 1,000,000. Yearly billing gives two months free. Every feature is on every plan. Check the current plan details on ScreenshotNeo before choosing a plan.
Frequently Asked Questions
Does Playwright create a PDF of the whole page?
Yes. By default, `page.pdf()` prints the page using print CSS media; the target site’s print styles determine how its content is laid out.
How do I save an online school admission form as a PDF?
Use the school’s own Print, reprint, or PDF option if available. Otherwise, navigate to the authorized form in Playwright, wait for its content to be ready, and call `page.pdf()`.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Can I create the PDF using the screen version of a page?
Yes. Call `page.emulateMedia({ media: ‘screen’ })` before `page.pdf()` when you specifically want screen media styling.
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.




