ScreenshotNeo

BlogHTML to image & PDF

How to Convert HTML to PDF on iPhone

Save a webpage as a PDF on iPhone with Safari, Chrome, or Firefox, plus troubleshooting and an API option for automated captures.

By the ScreenshotNeo team1 October 20267 min read

For a webpage already open on your iPhone, Safari provides the clearest built-in route: open the page, tap Share, choose Markup, tap More and Done, then choose Save File To. Name the PDF, select a location in Files, and tap Save. Apple documents this workflow for annotating and saving a webpage as a PDF. Apple Support explains the Safari steps.

The word “HTML” can mean two different things. These instructions convert a rendered webpage in a browser. A raw .html file stored in Files is a different case; the browser workflows below do not establish a universal iPhone method for converting arbitrary local HTML files.

Convert a webpage to PDF in Safari

  1. Open the webpage in Safari and let the content finish loading.
  2. Open the page menu and tap Share. Depending on your Safari tab layout, the Share control may appear directly in the toolbar.
  3. Tap Markup.
  4. Optionally highlight, draw, or add notes to the page.
  5. Tap More, then tap Done.
  6. Choose Save File To.
  7. Enter a filename, choose a folder in Files or iCloud Drive, and tap Save.

Apple describes Markup as a way to annotate a webpage and share the resulting document as a PDF. The exact toolbar position can vary with Safari’s top or bottom tab layout, so look for the Share control in the page toolbar if it is not where you expect. See Apple’s current iPhone User Guide.

Optional Share-sheet PDF path

Some Apple interfaces expose a Share-sheet sequence that lets you choose Options, select PDF, tap Done, and then save to Files. Apple Education Community documents this flow for iPad. Treat it as interface-dependent on iPhone rather than a guaranteed menu on every iOS version. Review the Apple Education Community example.

Convert a webpage from Chrome on iPhone

  1. Open the webpage in Chrome.
  2. Tap Share.
  3. Tap View more.
  4. Choose Print.
  5. Select the available print settings and continue through AirPrint.
  6. Choose a printer or an available destination provided by your iPhone’s print sheet.

Google’s Chrome instructions document the Share → View more → Print and AirPrint route. They do not explicitly promise that this route always creates a PDF file in Files, so use Safari’s Markup workflow when you specifically need the documented PDF-save path.

Convert a webpage from Firefox on iPhone

  1. Open the webpage in Firefox.
  2. Take a full-page screenshot using the iOS screenshot controls.
  3. Open the screenshot preview.
  4. Select Full Page.
  5. Tap Done.
  6. Choose Save as PDF and select the destination.

Mozilla documents this Firefox workflow. It starts from a full-page screenshot, so the result and controls can differ from Safari’s direct webpage-to-PDF flow.

Which iPhone method should you use?

Browser Documented iPhone path Save behavior Best fit
Safari Share → Markup → More → Done → Save File To Directly saves the webpage as a PDF The simplest documented PDF workflow
Chrome Share → View more → Print → AirPrint Print route; the cited help does not guarantee PDF file export Pages already open in Chrome or print workflows
Firefox Full-page screenshot → Full Page → Done → Save as PDF Saves the full-page screenshot as a PDF Firefox users who want a full-page capture

The cited documentation does not compare link preservation, dynamic content, fonts, or final layout between browsers. If those details matter, open the saved PDF and inspect it before sharing.

Before you save: improve the result

  • Wait for the page to load: allow images, fonts, and expandable sections you need to appear before starting the conversion.
  • Check the visible state: cookie dialogs, newsletter forms, chat bubbles, and sticky headers may be included if they are visible when the PDF is created.
  • Expand important content: accordions and “read more” sections may not be included unless opened first.
  • Keep the original URL: record it with the PDF when the document needs provenance or later verification.
  • Review long pages: scroll through the PDF for clipped tables, missing images, or unexpected page breaks.

Convert a webpage to PDF automatically with ScreenshotNeo

If you need repeatable captures, a server-side workflow avoids doing the same browser steps by hand. ScreenshotNeo is a website screenshot API and MCP server. It can return a clean screenshot or PDF from one request, and its capture options include full-page rendering, custom CSS and JavaScript, waits, cookies, headers, device settings, and PDF paper size, margins, landscape mode, and page ranges. Read the ScreenshotNeo API documentation for the available PDF options.

cURL

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

Python

import requests

r = requests.get(
    "https://api.screenshotneo.com/v1/shot",
    params={"access_key": "YOUR_API_KEY", "url": "https://example.com"},
    timeout=90,
)
r.raise_for_status()
open("page.pdf", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://example.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const fs = await import('node:fs/promises');
await fs.writeFile('page.pdf', Buffer.from(await res.arrayBuffer()));

Use the PDF output options in the documentation when you need a particular paper size, margins, orientation, or page range. ScreenshotNeo accepts the URL and performs the browser capture remotely, so your application does not need to install or maintain an iPhone browser automation stack.

Why the automated route can help

  • Cookie and consent banners, newsletter popups, and chat widgets are removed before the shot.
  • Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed as clean shots; response headers identify the page verdict and billing state.
  • An MCP server lets AI agents such as Claude, Cursor, and other MCP clients call take_screenshot, get_page_info, and capture_pdf.
  • The Free plan includes 1,000 shots each month with no card. Paid plans start at $5 for 3,000 shots, and every feature is available on every plan.

Create a free ScreenshotNeo account to try automated webpage-to-PDF captures.

Troubleshooting

There is no Markup option in Safari

Open the Share sheet from the webpage itself and scroll through the available actions. Safari’s toolbar arrangement differs between tab layouts. If Markup still does not appear, try the Share-sheet PDF option if your iOS version exposes it, or use the documented Firefox or Chrome route.

The PDF is missing images or text

Return to the webpage, wait for lazy-loaded content to appear, and save it again. Expand collapsed sections and dismiss overlays that cover content before creating the PDF.

The Chrome workflow asks for a printer

That is expected: Google’s documented Chrome path is a print flow through AirPrint. It does not guarantee a PDF file export. Use Safari’s Markup flow when you need Save File To.

The Firefox PDF is only one screen tall

Open the screenshot preview and select Full Page before tapping Done. The Firefox procedure begins with a screenshot, so the full-page selection is a required step.

The saved file is difficult to find

In Safari, check the folder you selected in Save File To, including iCloud Drive or On My iPhone. Search the filename in the Files app.

A local .html file does not follow these steps

These instructions address a webpage rendered in Safari, Chrome, or Firefox. A raw HTML file in Files may need to be hosted or opened in an application that supports printing or PDF export; the cited Apple, Google, and Mozilla pages do not define one universal local-file conversion process.

Performance, reliability, and cost notes

  • On iPhone: the conversion is manual and depends on the page finishing its own loading and rendering. Very long or script-heavy pages deserve a visual review after saving.
  • For repeat jobs: an API gives you a reusable request and lets you set waits, device settings, cookies, headers, and PDF layout options centrally.
  • Reliability: keep the source URL and check the resulting PDF. Dynamic pages can change between captures, and browser menus can vary by iOS release.
  • Cost: Safari, Chrome, and Firefox workflows use built-in device software. ScreenshotNeo has a Free plan with 1,000 shots per month and no card; paid plans start at $5 for 3,000 shots. Only clean shots are billed, while bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing.

FAQ

Can I convert any HTML file to PDF on an iPhone?

The documented steps cover a webpage already rendered in a browser. They do not establish a universal method for arbitrary local .html files in Files.

The cited Apple instructions explain saving and annotating the page as a PDF but do not promise identical link preservation for every webpage.

Is Chrome’s Print command the same as saving a PDF?

No guarantee is made in the cited Chrome help page. It documents printing through AirPrint; use Safari’s Save File To path when you need a documented PDF save workflow.

Can I capture a whole site automatically?

ScreenshotNeo can capture a supplied URL and supports full-page PDF options. It does not automatically discover every page on a site from one request.

Can AI agents create these PDFs?

ScreenshotNeo’s MCP server provides capture_pdf and related tools for MCP clients such as Claude and Cursor.