You need dated PDF copies of web pages: a competitor's terms and pricing, evidence of what a page said on a given day, a reading list for offline, or documents for a pipeline that only ingests PDFs. "Print to PDF" in the browser works for one page. For a list, here is what to get right.

1. Decide: screen look or print stylesheet

Chromium's PDF output uses the print stylesheet by default, which on many sites hides images, nav and colour. For evidence and archiving you usually want the page to look like the website (screen CSS, backgrounds on). For reading, the site's print CSS is often cleaner. Make it a per-run choice.

2. Load lazy images before printing

Images below the fold are not loaded until you scroll. Scroll to the bottom, then print, or half your PDF is grey boxes.

3. Consider one long page for archives

Page breaks cut tables and images in half. For an archive copy, a single page as tall as the content keeps the layout intact. For documents people will print, use A4 or Letter with margins and page numbers.

4. Store page count and HTTP status with each file

A PDF of a 404 page is still a valid PDF. Keep statusCode, title and pageCount beside the file link so you can spot bad captures without opening them.

Example output

Real rows from a 3-URL run (A4 portrait, screen CSS, backgrounds on): 3 PDFs, 21 pages, 23.8 s total including browser start:

URL Title Pages Bytes Load ms
https://en.wikipedia.org/wiki/Web_scraping Web scraping - Wikipedia 12 315,195 2,896
https://docs.apify.com/academy/web-scraping-for-beginners Web scraping basics for JavaScript devs 7 2,757,046 3,207
https://www.python.org/about/ About Python 2 270,416 1,376

Each row also has pdfUrl (direct file link), paperFormat, landscape, mediaType, printBackground, marginMm and createdAt.

I run these with my URL to PDF Converter ($1.80 per 1,000 PDFs plus Apify usage, however many pages each PDF has; no start fee; failed URLs and 4xx/5xx pages are never charged). US Letter, landscape, printer-friendly, with page numbers:

{ "urls": ["https://en.wikipedia.org/wiki/PDF"], "paperFormat": "Letter", "landscape": true, "mediaType": "print", "printBackground": false, "headerFooter": true } 

Archive copy that looks exactly like the site, no page breaks:

{ "urls": ["https://example.com/terms", "https://example.com/pricing"], "onePage": true } 

From Python:

# pip install apify-client from apify_client import ApifyClient client = ApifyClient("YOUR_APIFY_TOKEN") run = client.actor("rel8ble/url-to-pdf-converter").call(run_input={ "urls": ["https://en.wikipedia.org/wiki/PDF"], "paperFormat": "Letter" }) for row in client.dataset(run["defaultDatasetId"]).iterate_items(): print(row["url"], row["pageCount"], row["pdfUrl"]) 

Save the input as an Apify task with a weekly schedule and you have a dated archive of the pages you care about. Paper sizes: A4, Letter, Legal, A3, A5, Tabloid.

Limits: public pages only (no logins); a URL that points straight at a PDF file is reported as a download, not converted.

Using Claude, Cursor or another MCP client? Add https://mcp.apify.com?tools=rel8ble/url-to-pdf-converter as a remote MCP server and ask in plain English.

Disclosure: I built and maintain this actor; it is a paid Apify actor (pay per result, Apify's free plan credit covers small tests). The sample rows above are real output from a test run.