How to Save a Webpage as PDF in Safari with Background Colors
Save a Safari webpage as a PDF on Mac, iPhone, or iPad. Learn what to check when background colors are missing and how to preview the result.
On a Mac: Open the webpage in Safari, choose File > Print, inspect the preview and Safari-specific print options, then choose PDF > Save as PDF. If the print dialog offers a Print backgrounds option, enable it and check the preview before saving. Its presence and location can vary; current Apple user documentation confirms PDF saving but does not establish a universal background-color control.
Save a Safari webpage as a PDF on Mac
- Open the webpage in Safari and wait for the content you need to appear.
- Choose File > Print. Review the preview to see how the page breaks across sheets and whether its background colors appear.
- Expand the print dialog’s Safari-specific options, if available. If you see Print backgrounds, turn it on, then inspect the preview again. The option is not documented as available in every current Safari version.
- Open the PDF pop-up menu and choose Save as PDF.
- Enter a filename, choose a destination, and save.
Apple documents the Mac print workflow and the PDF pop-up. A page’s own print styles can also change its appearance, so the preview is the best place to catch missing colors, clipped content, or unexpected page breaks before saving. Apple’s Mac print settings guide covers print settings and PDF output.
What to do when background colors are missing
First check the preview for a background-printing control. An older Safari instruction sheet shows a Print backgrounds checkbox, but that historical interface does not prove current Safari has the same checkbox or location. If you cannot find it, do not assume a hidden universal Safari setting exists.
- If the control is available: enable it and check the preview again.
- If the control is absent: the page’s print stylesheet may omit backgrounds, or the current print interface may not expose a background option. Safari’s Reader theme is not a guaranteed workaround: Apple describes changing Reader’s appearance but does not promise that its theme carries into printed PDFs.
- If only some elements are missing: the site may use decorative backgrounds or other screen-only styling that its print layout removes. Check the saved PDF and, if possible, the site’s print-specific view.
WebKit has a shouldPrintBackgrounds preference for developers building web views, and Apple documents its default as false. That developer API is not evidence of a corresponding toggle in Safari’s normal print dialog. Apple’s WebKit reference explains the developer preference.
Save a webpage as PDF on iPhone or iPad
- Open the webpage in Safari.
- Tap Share and choose Markup. Depending on the device layout, you may need to locate Markup among additional actions.
- When the PDF preview opens, review it and use the available controls to finish.
- Choose Save File To, select a destination, and save.
Apple documents this route for saving a webpage as a PDF. It does not promise that every background color or decorative element will be preserved, so inspect the resulting file. See Apple’s iPhone instructions.
When a Web Archive is a better fit
If you need to keep a webpage for later and do not specifically need a portable PDF, Safari on Mac can save a Web Archive using File > Save As. Apple says a Web Archive saves graphics and links, while Page Source saves the HTML source. Some websites may prevent items from being saved. A Web Archive is an archive format, not a PDF substitute. See Apple’s Safari page-saving guide.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server. One request can return an image or PDF, which is useful when you need repeatable captures in a script or agent workflow. Its clean-shot steps can accept consent banners and remove known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents.
For PDF output, use the API’s PDF options described in the ScreenshotNeo documentation. Here is the one-call request pattern from the service for a screenshot; change the target URL as needed. The service supports PDF captures as well.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
ScreenshotNeo includes 1,000 screenshots per month free with no card; paid plans start at $5 for 3,000. Sign up for free and get 1,000 screenshots a month, with no card required.
Troubleshooting
| What you see | Likely cause | What to try |
|---|---|---|
| PDF has white backgrounds | The print dialog does not offer background printing, or the page’s print styling omits backgrounds. | Check expanded Safari-specific options for a background control; if present, enable it and inspect the preview. There is no confirmed universal current Safari toggle. |
| Colors appear in preview but not the saved file | The saved output may not match what you expected, or the page may use styling that changes for print. | Reopen the PDF and compare it with the preview. Try saving again after reviewing the print options. |
| Content is clipped or split awkwardly | The webpage’s print layout or page breaks do not fit the chosen paper size. | Review the preview and available print settings before saving; check whether the site offers a print-friendly page. |
| Some images or page elements are absent | The site may omit elements in print or restrict saving. A page can also finish loading after printing begins. | Wait for the page to load, preview it, and check the site’s own print view if one exists. |
| You cannot find “Save as PDF” on iPhone or iPad | The mobile workflow uses Share and Markup rather than the Mac PDF pop-up. | Open Share, choose Markup, finish the PDF flow, then choose Save File To. |
Performance, reliability, and file-size considerations
For a single page, Safari’s built-in print flow is the simplest route and needs no separate capture service. Large pages, slow-loading content, and pages designed primarily for screens can take longer to review and may produce awkward page breaks. Wait for important content to load and inspect the preview and saved PDF.
PDF output depends on the page’s print styles and the options exposed by the current Safari and macOS interface. Background printing cannot be promised for every page or version. If you need many repeatable captures, an API can fit an automated workflow; account for the selected plan and capture volume. ScreenshotNeo’s free tier is 1,000 shots a month, and paid plans start at $5 for 3,000; yearly billing gives two months free.
FAQ
Does Safari always include webpage background colors in a PDF?
No. The available print controls and the website’s print styles affect the result. Check the dialog and preview; do not assume every Safari version has a background-print checkbox.
Can Reader’s background theme force colors into the PDF?
Apple documents Reader themes for reading appearance, not as a setting guaranteed to carry into printed PDFs.
Is Web Archive the same as a PDF?
No. Web Archive saves a webpage archive; choose PDF when you need a portable document.
Can I automate PDFs instead of printing each page manually?
Yes. A website capture API such as ScreenshotNeo can return PDFs through requests, and its MCP tools can make capture available to compatible AI agents. Check the documentation for PDF-specific parameters.


